From 903303579fae6e7ff5fc4188eef0d57e4c24d68e Mon Sep 17 00:00:00 2001 From: Simen Svale Skogsrud Date: Fri, 3 Jun 2011 21:56:55 +0200 Subject: [PATCH] NOW printFloat probably works --- print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print.c b/print.c index f326d47..2375f37 100644 --- a/print.c +++ b/print.c @@ -81,7 +81,7 @@ void printFloat(double n) serial_write('.'); fractional_part *= 10; int decimals = DECIMAL_PLACES; - while(decimals > 0) { + while(decimals-- > 0) { decimal_part = floor(fractional_part); printDigit(decimal_part); fractional_part -= decimal_part;