Permalink
Browse files

printFloat rounding fix. Affected settings. Recommend using new build.

printFloat was printing incorrectly and adding a value of 5 to every
float instead of 0.0005 when rounding to 3 decimal places. The printed
settings values do not accurately portray the actual stored value.
Recommend using newly posted build.
  • Loading branch information...
1 parent b86ba60 commit 24f1e0231ee477d9a6a99130479f8227d8ea2bcb @chamnit chamnit committed Feb 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 print.c
View
@@ -29,7 +29,7 @@
#ifndef DECIMAL_PLACES
#define DECIMAL_PLACES 3
-#define DECIMAL_MULTIPLIER 10*10*10
+#define DECIMAL_MULTIPLIER 1000
#endif
void printString(const char *s)

0 comments on commit 24f1e02

Please sign in to comment.