General testings

Dependencies:   mbed

Fork of BEACON_CODE_NEW by Mohamed Azad

Files at this revision

API Documentation at this revision

Comitter:
shekhar
Date:
Thu Oct 22 04:44:41 2015 +0000
Parent:
15:c64cb19519d0
Child:
17:c11643eb8e23
Commit message:
changed fractionpart from float to double

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 22 04:43:42 2015 +0000
+++ b/main.cpp	Thu Oct 22 04:44:41 2015 +0000
@@ -257,8 +257,8 @@
     else
     return false;
     centre /= 10.0;
-    float integerPart = floor(centre);
-    float fractionalPart = centre - integerPart;
+    double integerPart = floor(centre);
+    double fractionalPart = centre - integerPart;
  
     uint8_t fb = (uint8_t)integerPart - 24; // Range 0 to 23
     fbsel |= fb;