altos: Init BMX160 more carefully
authorKeith Packard <keithp@keithp.com>
Fri, 21 Feb 2020 06:53:31 +0000 (22:53 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 21 Feb 2020 06:58:32 +0000 (22:58 -0800)
commit88cb0f4a791e0867ccd279e6d244d94f0b1765e9
treea123ce9d0a48ad882820756ee1e4e8f3cf80b764
parent0ca9a7c6fc914c4b555c99863828861ec54fa01d
altos: Init BMX160 more carefully

Check accel and gyro power status after turning them on, waiting
for a while to see if they actually power up.

Read more registers after configuring accel to try and get things
reset better.

Signed-off-by: Keith Packard <keithp@keithp.com>
Oops.

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