From 85234b5b1832e88000a83575e8d80516fe284bda Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 15 Jul 2023 19:37:34 +0100 Subject: [PATCH] AP_GyroFFT: update harmonics to uint32 --- libraries/AP_GyroFFT/AP_GyroFFT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_GyroFFT/AP_GyroFFT.cpp b/libraries/AP_GyroFFT/AP_GyroFFT.cpp index 9b510a4034b60..0ef98bfb495c7 100644 --- a/libraries/AP_GyroFFT/AP_GyroFFT.cpp +++ b/libraries/AP_GyroFFT/AP_GyroFFT.cpp @@ -273,7 +273,7 @@ void AP_GyroFFT::init(uint16_t loop_rate_hz) // check for harmonics across all harmonic notch filters // note that we only allow one harmonic notch filter linked to the FFT code - uint8_t harmonics = 0; + uint32_t harmonics = 0; uint8_t num_notches = 0; for (auto ¬ch : _ins->harmonic_notches) { if (notch.params.enabled()) {