projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
291bcd7
)
altos/telelco-v2.0: Fix AO_ADC_DUMP
author
Keith Packard
<keithp@keithp.com>
Sun, 17 Jun 2018 08:20:01 +0000
(
01:20
-0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 17 Jun 2018 08:28:36 +0000
(
01:28
-0700)
Was printing p.v_batt instead of (p)->v_batt. I don't know why the
former even worked.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/telelco-v2.0/ao_pins.h
patch
|
blob
|
history
diff --git
a/src/telelco-v2.0/ao_pins.h
b/src/telelco-v2.0/ao_pins.h
index 48aeabdfa2d6808823ab05d216f4f0ef8dc9ceda..95998dc781775ec7b5ea0641822bd956a9c55e64 100644
(file)
--- 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