AP_Logger: control PrepForArming in UNKNOWN builds

This commit is contained in:
Andy Piper 2022-10-15 15:47:54 +01:00 committed by Andrew Tridgell
parent c1fbdd5972
commit f9451e36f5
1 changed files with 1 additions and 1 deletions

View File

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