diff --git a/libraries/AP_Quicktune/AP_Quicktune.cpp b/libraries/AP_Quicktune/AP_Quicktune.cpp index b5dcc0d87472ee..585fe0b65a864e 100644 --- a/libraries/AP_Quicktune/AP_Quicktune.cpp +++ b/libraries/AP_Quicktune/AP_Quicktune.cpp @@ -344,6 +344,7 @@ void AP_Quicktune::setup_filters(AP_Quicktune::AxisName axis) { if (auto_filter <= 0) { BIT_SET(filters_done, uint8_t(axis)); + return; } AP_InertialSensor *imu = AP_InertialSensor::get_singleton(); if (imu == nullptr) { @@ -497,7 +498,6 @@ void AP_Quicktune::restore_all_params() void AP_Quicktune::save_all_params() { - // for pname in pairs(params) do for (int8_t pname = 0; pname < uint8_t(Param::END); pname++) { if (BIT_IS_SET(param_changed, pname)) { set_and_save_param_value(Param(pname), get_param_value(Param(pname)));