mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_FlashStorage: create and use INTERNAL_ERROR macro so we get line numbers
This commit is contained in:
parent
8e82ea2540
commit
37cddbeea6
@ -142,7 +142,7 @@ bool AP_FlashStorage::switch_full_sector(void)
|
||||
debug("running switch_full_sector()\n");
|
||||
|
||||
if (in_switch_full_sector) {
|
||||
AP::internalerror().error(AP_InternalError::error_t::switch_full_sector_recursion);
|
||||
INTERNAL_ERROR(AP_InternalError::error_t::switch_full_sector_recursion);
|
||||
return false;
|
||||
}
|
||||
in_switch_full_sector = true;
|
||||
|
Loading…
Reference in New Issue
Block a user