diff --git a/ArduPlane/mode_thermal.cpp b/ArduPlane/mode_thermal.cpp index 1e1ef16074..d592c6de15 100644 --- a/ArduPlane/mode_thermal.cpp +++ b/ArduPlane/mode_thermal.cpp @@ -127,7 +127,7 @@ bool ModeThermal::exit_heading_aligned() const switch (plane.previous_mode->mode_number()) { case Mode::Number::AUTO: { //Get the lat/lon of next Nav waypoint after this one: - AP_Mission::Mission_Command current_nav_cmd = plane.mission.get_current_nav_cmd();; + AP_Mission::Mission_Command current_nav_cmd = plane.mission.get_current_nav_cmd(); return plane.mode_loiter.isHeadingLinedUp(plane.next_WP_loc, current_nav_cmd.content.location); } case Mode::Number::FLY_BY_WIRE_B: diff --git a/ArduPlane/quadplane.cpp b/ArduPlane/quadplane.cpp index 1fa4a18ab3..4c7d59d343 100644 --- a/ArduPlane/quadplane.cpp +++ b/ArduPlane/quadplane.cpp @@ -981,7 +981,7 @@ float QuadPlane::get_pilot_throttle() float thrust_curve_expo = constrain_float(throttle_expo, 0.0f, 1.0f); // this puts mid stick at hover throttle - return throttle_curve(thr_mid, thrust_curve_expo, throttle_in);; + return throttle_curve(thr_mid, thrust_curve_expo, throttle_in); } else { return throttle_in; }