altos: Change MMC5893 driver to avoid interrupts
authorKeith Packard <keithp@keithp.com>
Tue, 3 Aug 2021 00:04:20 +0000 (17:04 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 3 Aug 2021 00:04:20 +0000 (17:04 -0700)
commit4d3a208c9d85d73cab7c2bac91c12e540d76c76f
tree9ba879065122b88e938b7331afe531b0cb1ff1c6
parenteb77758b7dcdd0bcef12cd1d56cf4d447cbe5c8c
altos: Change MMC5893 driver to avoid interrupts

Set the chip to sample at 200Hz and then simply read the results at
100Hz to get a reasonably recent sample. This avoids a delay at each
sample interval.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_mmc5983.c