pradeep shekhar
/
Beacon_BAE_intergration_test_3
General testings
Fork of BEACON_CODE_NEW by
Revision 16:cc5fdb4a8436, committed 2015-10-22
- 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;