aboutsummaryrefslogtreecommitdiffhomepage
path: root/AT91SAM7S256/Source/c_ui.h
diff options
context:
space:
mode:
authorJohn Hansen2011-01-20 01:27:54 +0100
committerNicolas Schodet2011-01-21 23:15:36 +0100
commitd6bd4ec76414e535a297e37aef9de066c20b7e10 (patch)
treefb9ec04067a061d51526f26e419f9332849f59dc /AT91SAM7S256/Source/c_ui.h
parent297e078de44336eb37e59c31638988de4adfb88b (diff)
use float instead of double when possible
Useless use of double precision math will include large functions and eat CPU time. Imported from NXT Enhanced Firmware.
Diffstat (limited to 'AT91SAM7S256/Source/c_ui.h')
-rw-r--r--AT91SAM7S256/Source/c_ui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AT91SAM7S256/Source/c_ui.h b/AT91SAM7S256/Source/c_ui.h
index e74dcbe..e0f8f4a 100644
--- a/AT91SAM7S256/Source/c_ui.h
+++ b/AT91SAM7S256/Source/c_ui.h
@@ -36,7 +36,7 @@
#define CHECKBYTE 0x78 // Used to validate NVData
-#define BATTERY_COUNT_TO_MV 13.848 // Battery count to mV factor [mV/cnt]
+#define BATTERY_COUNT_TO_MV 13.848f // Battery count to mV factor [mV/cnt]
#define LOW_BATT_THRESHOLD 6 // Low batt conunts before warning
#define BUTTON_DELAY_TIME 800 // Delay before first repeat [mS]