From: Keith Packard Date: Fri, 21 Feb 2020 00:23:33 +0000 (-0800) Subject: altos: Copy BMX160 data to data ring X-Git-Tag: 1.9.2~2^2~21 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=ee38b3bea20f1e3a73e67aea151f9fc6abdc8483;p=fw%2Faltos altos: Copy BMX160 data to data ring Otherwise you get a lot of zero Signed-off-by: Keith Packard --- diff --git a/src/kernel/ao_data.h b/src/kernel/ao_data.h index a7e58762..43bd0e21 100644 --- a/src/kernel/ao_data.h +++ b/src/kernel/ao_data.h @@ -523,6 +523,9 @@ ao_data_fill(int head) { #endif #if HAS_ADS131A0X ao_data_ring[head].ads131a0x = ao_ads131a0x_current; +#endif +#if HAS_BMX160 + ao_data_ring[head].bmx160 = ao_bmx160_current; #endif ao_data_ring[head].tick = ao_tick_count; ao_data_head = ao_data_ring_next(head);