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; }