AP_Logger: use AP_AHRS_ENABLED define

This commit is contained in:
Peter Barker 2023-06-24 10:01:52 +10:00 committed by Peter Barker
parent edb0a9b7fe
commit 023316b269
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ void AP_Logger_File::PrepForArming_start_logging()
if (logging_started()) {
break;
}
#if !APM_BUILD_TYPE(APM_BUILD_Replay) && !defined(HAL_BUILD_AP_PERIPH) && !APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
#if !APM_BUILD_TYPE(APM_BUILD_Replay) && AP_AHRS_ENABLED
// keep the EKF ticking over
AP::ahrs().update();
#endif