Skip to content

Commit

Permalink
AP_Quicktune: Add missing return, remove extra lua
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleRos committed Aug 6, 2024
1 parent e1154c9 commit 82cb30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Quicktune/AP_Quicktune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)));
Expand Down

0 comments on commit 82cb30a

Please sign in to comment.