projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Intgrate hmc5883 sensor into adc ring
[fw/altos]
/
src
/
stm
/
ao_adc_stm.c
diff --git
a/src/stm/ao_adc_stm.c
b/src/stm/ao_adc_stm.c
index 24a1fdd012a0bc0d68c650c00b429e42942bf91c..71299de93c7a4a77814ea843477117d173f1dad6 100644
(file)
--- a/
src/stm/ao_adc_stm.c
+++ b/
src/stm/ao_adc_stm.c
@@
-62,6
+62,11
@@
static void ao_adc_done(int index)
step = 0;
ao_data_ring[ao_data_head].ms5607 = ao_ms5607_current;
#endif
step = 0;
ao_data_ring[ao_data_head].ms5607 = ao_ms5607_current;
#endif
+#if HAS_HMC5883
+ if (!ao_hmc5883_valid)
+ step = 0;
+ ao_data_ring[ao_data_head].hmc5883 = ao_hmc5883_current;
+#endif
if (step) {
ao_data_head = ao_data_ring_next(ao_data_head);
ao_wakeup((void *) &ao_data_head);
if (step) {
ao_data_head = ao_data_ring_next(ao_data_head);
ao_wakeup((void *) &ao_data_head);