Skip to content

Commit

Permalink
AP_InertialSensor: fixed num_filters to be uint16_t
Browse files Browse the repository at this point in the history
max is more than 256
  • Loading branch information
tridge committed Nov 15, 2023
1 parent 79c3724 commit 84e7df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_InertialSensor/AP_InertialSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 84e7df3

Please sign in to comment.