From 36fd632a498ff9a5eb7926cf1484f0da660e7703 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 30 Apr 2020 10:40:45 +1000 Subject: [PATCH] AP_AHRS: create and use INTERNAL_ERROR macro so we get line numbers --- libraries/AP_AHRS/AP_AHRS_NavEKF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp index 68ce7d1817..a94246b758 100644 --- a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp +++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp @@ -2179,7 +2179,7 @@ int8_t AP_AHRS_NavEKF::get_primary_core_index() const } // we should never get here - AP::internalerror().error(AP_InternalError::error_t::flow_of_control); + INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control); return -1; }