diff --git a/libraries/AP_InternalError/AP_InternalError.cpp b/libraries/AP_InternalError/AP_InternalError.cpp index 4823791355..c40d1029c2 100644 --- a/libraries/AP_InternalError/AP_InternalError.cpp +++ b/libraries/AP_InternalError/AP_InternalError.cpp @@ -54,6 +54,7 @@ void AP_InternalError::errors_as_string(uint8_t *buffer, const uint16_t len) con "sfs_recursion", // switch_full_sector_recursion "bad_rotation", "stack_ovrflw", // stack_overflow + "imu_reset", // imu_reset }; static_assert((1U<<(ARRAY_SIZE(error_bit_descriptions))) == uint32_t(AP_InternalError::error_t::__LAST__), "too few descriptions for bits"); diff --git a/libraries/AP_InternalError/AP_InternalError.h b/libraries/AP_InternalError/AP_InternalError.h index f27f72ad90..bd01cdf35d 100644 --- a/libraries/AP_InternalError/AP_InternalError.h +++ b/libraries/AP_InternalError/AP_InternalError.h @@ -61,7 +61,8 @@ public: switch_full_sector_recursion= (1U << 21), //0x200000 2097152 bad_rotation = (1U << 22), //0x400000 4194304 stack_overflow = (1U << 23), //0x800000 8388608 - __LAST__ = (1U << 24), // used only for sanity check + imu_reset = (1U << 24), //0x1000000 16777216 + __LAST__ = (1U << 25), // used only for sanity check }; // if you've changed __LAST__ to be 32, then you will want to