projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
962df1f
)
altos: Actually store current MPU9250 data in data ring
author
Keith Packard
<keithp@keithp.com>
Mon, 11 Dec 2017 22:08:32 +0000
(14:08 -0800)
committer
Keith Packard
<keithp@keithp.com>
Mon, 11 Dec 2017 22:08:32 +0000
(14:08 -0800)
The ring is updated when the ADC finishes; all of the other sensor
data needs to be copied in at that point.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_adc_stm.c
patch
|
blob
|
history
diff --git
a/src/stm/ao_adc_stm.c
b/src/stm/ao_adc_stm.c
index c3cca5e4f3139372eb7b5d4d63fd2c117902ca98..24912bb28b34849d7b2297ff8c11e6e6cd63a4fb 100644
(file)
--- a/
src/stm/ao_adc_stm.c
+++ b/
src/stm/ao_adc_stm.c
@@
-57,6
+57,9
@@
static void ao_adc_done(int index)
#endif
#if HAS_MPU6000
ao_data_ring[ao_data_head].mpu6000 = ao_mpu6000_current;
+#endif
+#if HAS_MPU9250
+ ao_data_ring[ao_data_head].mpu9250 = ao_mpu9250_current;
#endif
ao_data_ring[ao_data_head].tick = ao_tick_count;
ao_data_head = ao_data_ring_next(ao_data_head);