mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_InternalError: don't panic on SITL watchdog_reset
This commit is contained in:
parent
6897cecea2
commit
ebf04e70fe
@ -5,7 +5,9 @@ static AP_InternalError instance;
|
|||||||
|
|
||||||
void AP_InternalError::error(const AP_InternalError::error_t e) {
|
void AP_InternalError::error(const AP_InternalError::error_t e) {
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
|
if (e != AP_InternalError::error_t::watchdog_reset) {
|
||||||
AP_HAL::panic("internal error %u", unsigned(e));
|
AP_HAL::panic("internal error %u", unsigned(e));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
internal_errors |= uint32_t(e);
|
internal_errors |= uint32_t(e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user