altos/telebt-v3.0: Report battery voltage correctly
authorKeith Packard <keithp@keithp.com>
Fri, 26 Jun 2015 01:42:29 +0000 (18:42 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 26 Jun 2015 01:43:13 +0000 (18:43 -0700)
There was an extra %d, and an extra ':' in the output, making the UI
not parse the voltage correctly

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telebt-v3.0/ao_pins.h

index 6e90afcc16c63d32043f19e79b86bbd594f09949..a6a016622fa06aa364262d53db15b402cf9d92ea 100644 (file)
@@ -130,7 +130,7 @@ struct ao_adc {
 };
 
 #define AO_ADC_DUMP(p) \
-       printf("tick: %5u %5d batt: %5d\n", \
+       printf("tick: %5u batt %5d\n", \
               (p)->tick, \
               (p)->adc.v_batt);