diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 72e6852833..5fc0ffb306 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -1339,13 +1339,6 @@ bool AP_Arming::arm_checks(AP_Arming::Method method) } } -#if HAL_GYROFFT_ENABLED - // make sure the FFT subsystem is enabled if arming checks have been disabled - AP_GyroFFT *fft = AP::fft(); - if (fft != nullptr) { - fft->prepare_for_arming(); - } -#endif // ensure the GPS drivers are ready on any final changes if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_GPS_CONFIG)) { @@ -1408,6 +1401,14 @@ bool AP_Arming::arm(AP_Arming::Method method, const bool do_arming_checks) if (armed && do_arming_checks && checks_to_perform == 0) { gcs().send_text(MAV_SEVERITY_WARNING, "Warning: Arming Checks Disabled"); } + +#if HAL_GYROFFT_ENABLED + // make sure the FFT subsystem is enabled if arming checks have been disabled + AP_GyroFFT *fft = AP::fft(); + if (fft != nullptr) { + fft->prepare_for_arming(); + } +#endif #if AP_TERRAIN_AVAILABLE if (armed) {