Browse Source

AP_InternalError: don't panic on SITL watchdog_reset

master
Andrew Tridgell 6 years ago
parent
commit
ebf04e70fe
  1. 4
      libraries/AP_InternalError/AP_InternalError.cpp

4
libraries/AP_InternalError/AP_InternalError.cpp

@ -5,7 +5,9 @@ static AP_InternalError instance; @@ -5,7 +5,9 @@ static AP_InternalError instance;
void AP_InternalError::error(const AP_InternalError::error_t e) {
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
AP_HAL::panic("internal error %u", unsigned(e));
if (e != AP_InternalError::error_t::watchdog_reset) {
AP_HAL::panic("internal error %u", unsigned(e));
}
#endif
internal_errors |= uint32_t(e);
}

Loading…
Cancel
Save