From: Keith Packard Date: Sun, 17 Jun 2018 08:20:01 +0000 (-0700) Subject: altos/telelco-v2.0: Fix AO_ADC_DUMP X-Git-Tag: 1.8.6~1^2~25 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=290506129fb6cb664da3a5e3ca450a0dcdff0398 altos/telelco-v2.0: Fix AO_ADC_DUMP Was printing p.v_batt instead of (p)->v_batt. I don't know why the former even worked. Signed-off-by: Keith Packard --- diff --git a/src/telelco-v2.0/ao_pins.h b/src/telelco-v2.0/ao_pins.h index 48aeabdf..95998dc7 100644 --- a/src/telelco-v2.0/ao_pins.h +++ b/src/telelco-v2.0/ao_pins.h @@ -365,7 +365,7 @@ struct ao_adc { }; #define AO_ADC_DUMP(p) \ - printf("batt: %5d\n", p.v_batt) + printf("batt: %5d\n", (p)->v_batt) #define HAS_ADC_SINGLE 1 #define HAS_ADC_TEMP 0