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

This commit is contained in:
Peter Barker 2020-04-30 10:40:45 +10:00 committed by Peter Barker
parent 069bd04bdc
commit 36fd632a49

View File

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