Skip to content

Commit

Permalink
drivers: adis16507 reschedule reset after failed self test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimaj committed May 2, 2024
1 parent 224d6f2 commit 36ea872
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/drivers/imu/analog_devices/adis16507/ADIS16507.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ void ADIS16507::RunImpl()
const uint16_t DIAG_STAT = RegisterRead(Register::DIAG_STAT);

if (DIAG_STAT != 0) {
PX4_ERR("DIAG_STAT: %#X", DIAG_STAT);
PX4_ERR("self test failed, resetting. DIAG_STAT: %#X", DIAG_STAT);
_state = STATE::RESET;
ScheduleDelayed(3_s);

} else {
PX4_DEBUG("self test passed");
Expand Down

0 comments on commit 36ea872

Please sign in to comment.