From 14ce09279f6268b765aa43d1b8370b5759f1fb91 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 25 Feb 2022 17:55:48 +1100 Subject: [PATCH] RC_Channel: privatise switch reading functions --- libraries/RC_Channel/RC_Channel.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index 61c65f87d8..d0a66d86ef 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -265,8 +265,6 @@ public: SCRIPTING, }; - bool read_3pos_switch(AuxSwitchPos &ret) const WARN_IF_UNUSED; - bool read_6pos_switch(int8_t& position) WARN_IF_UNUSED; AuxSwitchPos get_aux_switch_pos() const; // wrapper function around do_aux_function which allows us to log @@ -355,6 +353,9 @@ private: int16_t pwm_to_range() const; int16_t pwm_to_range_dz(uint16_t dead_zone) const; + bool read_3pos_switch(AuxSwitchPos &ret) const WARN_IF_UNUSED; + bool read_6pos_switch(int8_t& position) WARN_IF_UNUSED; + // Structure used to detect and debounce switch changes struct { int8_t debounce_position = -1;