diff --git a/libraries/AP_InternalError/AP_InternalError.cpp b/libraries/AP_InternalError/AP_InternalError.cpp index cc498150bd..2bb3b3170e 100644 --- a/libraries/AP_InternalError/AP_InternalError.cpp +++ b/libraries/AP_InternalError/AP_InternalError.cpp @@ -21,6 +21,9 @@ void AP_InternalError::error(const AP_InternalError::error_t e, uint16_t line) { AP::internalerror().error_to_string(buffer, ARRAY_SIZE(buffer), e); AP_HAL::panic("AP_InternalError::error_t::%s", buffer); } +#endif +#if CONFIG_HAL_BOARD == HAL_BOARD_ESP32 +if (e == AP_InternalError::error_t::imu_reset) return;// don't worry about this for esp32 #endif internal_errors |= uint32_t(e); total_error_count++;