Skip to content

Commit

Permalink
printFloat rounding fix. Affected settings. Recommend using new build.
Browse files Browse the repository at this point in the history
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
chamnit committed Feb 1, 2012
1 parent b86ba60 commit 24f1e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion print.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 24f1e02

Please sign in to comment.