From 71c0d9479ae88463ab176cc4c4030142ba4b0b1f Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Mon, 25 Oct 2021 18:08:10 +0100 Subject: [PATCH] AP_GyroFFT: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI --- libraries/AP_GyroFFT/AP_GyroFFT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_GyroFFT/AP_GyroFFT.cpp b/libraries/AP_GyroFFT/AP_GyroFFT.cpp index c03dc62504..c9cd5416c9 100644 --- a/libraries/AP_GyroFFT/AP_GyroFFT.cpp +++ b/libraries/AP_GyroFFT/AP_GyroFFT.cpp @@ -683,7 +683,7 @@ float AP_GyroFFT::get_weighted_noise_center_freq_hz() const } if (!_health) { -#if APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduPlane) +#if APM_BUILD_COPTER_OR_HELI || APM_BUILD_TYPE(APM_BUILD_ArduPlane) AP_Motors* motors = AP::motors(); if (motors != nullptr) { // FFT is not healthy, fallback to throttle-based estimate @@ -715,7 +715,7 @@ uint8_t AP_GyroFFT::get_weighted_noise_center_frequencies_hz(uint8_t num_freqs, } if (!_health) { -#if APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduPlane) +#if APM_BUILD_COPTER_OR_HELI || APM_BUILD_TYPE(APM_BUILD_ArduPlane) AP_Motors* motors = AP::motors(); if (motors != nullptr) { // FFT is not healthy, fallback to throttle-based estimate