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:
ce81534
)
altos: Make telemetrum-v1.0 build with new ao_data structure
author
Keith Packard
<keithp@keithp.com>
Sun, 27 May 2012 23:25:17 +0000
(17:25 -0600)
committer
Keith Packard
<keithp@keithp.com>
Sun, 27 May 2012 23:25:17 +0000
(17:25 -0600)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_data.h
patch
|
blob
|
history
diff --git
a/src/core/ao_data.h
b/src/core/ao_data.h
index bd7e2d54a356ae087981d25f657deead36daf770..bb26c4c0dcb61895e90d5985a331a0e17c8cb814 100644
(file)
--- a/
src/core/ao_data.h
+++ b/
src/core/ao_data.h
@@
-183,7
+183,7
@@
typedef int16_t accel_t;
#define ao_data_accel_sample(packet) \
((uint16_t) ((((uint32_t) (packet)->adc.accel << 16) / ((packet)->accel_ref << 1))) >> 1)
#else
-#define ao_data_accel(packet) ((packet)->adc.accel)
+#define ao_data_accel
_sample
(packet) ((packet)->adc.accel)
#endif /* HAS_ACCEL_REF */
#endif /* else some other pressure sensor */