diff options
author | Keith Packard <keithp@keithp.com> | 2012-08-31 21:01:21 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-31 21:01:21 -0500 |
commit | f9af7819de086d9179c3a4d1df7c88ab67a7d7c7 (patch) | |
tree | 03588676c8870085ada79d53e39208ade02cac08 /src/drivers/ao_mpu6000.c | |
parent | 6d8858ca1899c8b64f107ebb45711efbb7b8d62a (diff) |
altos: Add custom panic noise for self-test failures
Make it easier to tell which component is failing self test
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 e8c80f12..b3e284e0 100644 --- a/src/drivers/ao_mpu6000.c +++ b/src/drivers/ao_mpu6000.c @@ -225,7 +225,7 @@ ao_mpu6000_setup(void) errors += ao_mpu6000_gyro_check(normal_mode.gyro_z, test_mode.gyro_z, "z"); if (errors) - ao_panic(AO_PANIC_SELF_TEST); + ao_panic(AO_PANIC_SELF_TEST_MPU6000); /* Filter to about 100Hz, which also sets the gyro rate to 1000Hz */ ao_mpu6000_reg_write(MPU6000_CONFIG, |