From 37cddbeea6900cec8d54b06bb1dec2bb7ada6537 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 30 Apr 2020 10:40:45 +1000 Subject: [PATCH] AP_FlashStorage: create and use INTERNAL_ERROR macro so we get line numbers --- libraries/AP_FlashStorage/AP_FlashStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_FlashStorage/AP_FlashStorage.cpp b/libraries/AP_FlashStorage/AP_FlashStorage.cpp index effd6c46cb..afd6385ceb 100644 --- a/libraries/AP_FlashStorage/AP_FlashStorage.cpp +++ b/libraries/AP_FlashStorage/AP_FlashStorage.cpp @@ -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;