Skip to content

Commit

Permalink
AP_QUicktune: remove extraneous internal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleRos committed Aug 27, 2024
1 parent e346056 commit a839230
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libraries/AP_Quicktune/AP_Quicktune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ float AP_Quicktune::get_param_value(AP_Quicktune::Param param)
if (ptr != nullptr) {
return ptr->get();
}
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
return 0.0;
}

Expand All @@ -649,7 +648,6 @@ void AP_Quicktune::set_param_value(AP_Quicktune::Param param, float value)
ptr->set(value);
return;
}
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
}

void AP_Quicktune::set_and_save_param_value(AP_Quicktune::Param param, float value)
Expand All @@ -659,7 +657,6 @@ void AP_Quicktune::set_and_save_param_value(AP_Quicktune::Param param, float val
ptr->set_and_save(value);
return;
}
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
}

AP_Quicktune::AxisName AP_Quicktune::get_axis(AP_Quicktune::Param param)
Expand Down

0 comments on commit a839230

Please sign in to comment.