diff --git a/APMrover2/Log.cpp b/APMrover2/Log.cpp index e6fa309c98..ec82a6b19a 100644 --- a/APMrover2/Log.cpp +++ b/APMrover2/Log.cpp @@ -375,7 +375,7 @@ void Rover::Log_Write_Home_And_Origin() #if AP_AHRS_NAVEKF_AVAILABLE // log ekf origin if set Location ekf_orig; - if (ahrs.get_NavEKF_const().getOriginLLH(ekf_orig)) { + if (ahrs.get_origin(ekf_orig)) { DataFlash.Log_Write_Origin(LogOriginType::ekf_origin, ekf_orig); } #endif