AP_InertialSensor: fixed num_filters to be uint16_t

max is more than 256
This commit is contained in:
Andrew Tridgell 2023-11-06 18:23:56 +11:00
parent ae75ea94eb
commit 08ccead215

View File

@ -1012,7 +1012,7 @@ AP_InertialSensor::init(uint16_t loop_rate)
sensors_used += _use(i);
}
uint8_t num_filters = 0;
uint16_t num_filters = 0;
for (auto &notch : harmonic_notches) {
// calculate number of notches we might want to use for harmonic notch
if (notch.params.enabled() || fft_enabled) {