From 290506129fb6cb664da3a5e3ca450a0dcdff0398 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 17 Jun 2018 01:20:01 -0700 Subject: [PATCH] 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 --- src/telelco-v2.0/ao_pins.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2