diff options
author | Keith Packard <keithp@keithp.com> | 2019-07-16 11:12:49 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-07-16 11:12:49 -0700 |
commit | 8b2e457db8c4536440ecd7dc35d06f827fc008dc (patch) | |
tree | abe53e894c9aad315be0b9c45b5223156132b2a1 /src/drivers/ao_mpu6000.c | |
parent | c37cd66b7c11f904b528c5ff7e80e18c5e0d26e5 (diff) |
altos: Record all failed sensors and report status at power up
Use DATA bits to mark which sensors have failed, then report that in
beeps at startup time to help diagnose hardware failures while still
allowing the board to be used over USB.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_mpu6000.c')
-rw-r--r-- | src/drivers/ao_mpu6000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_mpu6000.c b/src/drivers/ao_mpu6000.c index 8c85ab01..c894239e 100644 --- a/src/drivers/ao_mpu6000.c +++ b/src/drivers/ao_mpu6000.c @@ -305,7 +305,7 @@ _ao_mpu6000_setup(void) } if (st_tries == ST_TRIES) - ao_sensor_errors = 1; + AO_SENSOR_ERROR(AO_DATA_MPU6000); /* Filter to about 100Hz, which also sets the gyro rate to 1000Hz */ _ao_mpu6000_reg_write(MPU6000_CONFIG, |