mirror of https://github.com/ArduPilot/ardupilot
AP_InternalError: added an internal error for GPIO ISR overload
This commit is contained in:
parent
c62b86e3c1
commit
965af98f4a
|
@ -55,6 +55,7 @@ void AP_InternalError::errors_as_string(uint8_t *buffer, const uint16_t len) con
|
|||
"bad_rotation",
|
||||
"stack_ovrflw", // stack_overflow
|
||||
"imu_reset", // imu_reset
|
||||
"gpio_isr",
|
||||
};
|
||||
|
||||
static_assert((1U<<(ARRAY_SIZE(error_bit_descriptions))) == uint32_t(AP_InternalError::error_t::__LAST__), "too few descriptions for bits");
|
||||
|
|
|
@ -62,7 +62,8 @@ public:
|
|||
bad_rotation = (1U << 22), //0x400000 4194304
|
||||
stack_overflow = (1U << 23), //0x800000 8388608
|
||||
imu_reset = (1U << 24), //0x1000000 16777216
|
||||
__LAST__ = (1U << 25), // used only for sanity check
|
||||
gpio_isr = (1U << 25), //0x2000000 33554432
|
||||
__LAST__ = (1U << 26), // used only for sanity check
|
||||
};
|
||||
|
||||
// if you've changed __LAST__ to be 32, then you will want to
|
||||
|
|
Loading…
Reference in New Issue