Skip to content

Commit

Permalink
Plane: do_aux_function call ice_control.do_aux_function
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Nov 16, 2024
1 parent 4d75b44 commit 0f71363
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ArduPlane/RC_Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,6 @@ bool RC_Channel_Plane::do_aux_function(const AUX_FUNC ch_option, const AuxSwitch
case AUX_FUNC::FLAP:
case AUX_FUNC::FBWA_TAILDRAGGER:
case AUX_FUNC::AIRBRAKE:
#if AP_ICENGINE_ENABLED
case AUX_FUNC::ICE_START_STOP:
#endif
break; // input labels, nothing to do

#if HAL_QUADPLANE_ENABLED
Expand Down Expand Up @@ -458,6 +455,12 @@ bool RC_Channel_Plane::do_aux_function(const AUX_FUNC ch_option, const AuxSwitch
break;
#endif

#if AP_ICENGINE_ENABLED
case AUX_FUNC::ICE_START_STOP:
plane.g2.ice_control.do_aux_function(ch_flag);
break;
#endif

default:
return RC_Channel::do_aux_function(ch_option, ch_flag);
}
Expand Down

0 comments on commit 0f71363

Please sign in to comment.