From 0f597e0919166007e20a57caf2c67a68c6b241c6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 1 Oct 2020 15:17:02 +1000 Subject: [PATCH] RC_Channel: expose do_aux_function for button to call --- libraries/RC_Channel/RC_Channel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index 0af03d7c9d..2475b69055 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -232,10 +232,11 @@ public: bool read_3pos_switch(AuxSwitchPos &ret) const WARN_IF_UNUSED; AuxSwitchPos get_aux_switch_pos() const; + virtual void do_aux_function(aux_func_t ch_option, AuxSwitchPos); + protected: virtual void init_aux_function(aux_func_t ch_option, AuxSwitchPos); - virtual void do_aux_function(aux_func_t ch_option, AuxSwitchPos); virtual void do_aux_function_armdisarm(const AuxSwitchPos ch_flag); void do_aux_function_avoid_adsb(const AuxSwitchPos ch_flag);