Browse Source

AP_FlashStorage: create and use INTERNAL_ERROR macro so we get line numbers

zr-v5.1
Peter Barker 5 years ago committed by Peter Barker
parent
commit
37cddbeea6
  1. 2
      libraries/AP_FlashStorage/AP_FlashStorage.cpp

2
libraries/AP_FlashStorage/AP_FlashStorage.cpp

@ -142,7 +142,7 @@ bool AP_FlashStorage::switch_full_sector(void) @@ -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…
Cancel
Save