diff --git a/ArduPlane/RC_Channel.cpp b/ArduPlane/RC_Channel.cpp index 29ef33329c..d5ab778a92 100644 --- a/ArduPlane/RC_Channel.cpp +++ b/ArduPlane/RC_Channel.cpp @@ -199,7 +199,7 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option, } // do_aux_function - implement the function invoked by auxillary switches -void RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos ch_flag) +bool RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos ch_flag) { switch(ch_option) { case AUX_FUNC::INVERTED: @@ -325,7 +325,8 @@ case AUX_FUNC::ARSPD_CALIBRATE: break; default: - RC_Channel::do_aux_function(ch_option, ch_flag); - break; + return RC_Channel::do_aux_function(ch_option, ch_flag); } + + return true; } diff --git a/ArduPlane/RC_Channel.h b/ArduPlane/RC_Channel.h index 936590d39d..05959b42a4 100644 --- a/ArduPlane/RC_Channel.h +++ b/ArduPlane/RC_Channel.h @@ -11,7 +11,7 @@ protected: void init_aux_function(aux_func_t ch_option, AuxSwitchPos ch_flag) override; - void do_aux_function(aux_func_t ch_option, AuxSwitchPos) override; + bool do_aux_function(aux_func_t ch_option, AuxSwitchPos) override; private: