From 82cb30a4ba5ec575ec36667a476f26be90864c38 Mon Sep 17 00:00:00 2001 From: Michelle Rossouw Date: Tue, 6 Aug 2024 12:32:01 +1000 Subject: [PATCH] AP_Quicktune: Add missing return, remove extra lua --- libraries/AP_Quicktune/AP_Quicktune.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)));