From c17ef363544d23561392e3e9c153186f0b85358b Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Wed, 12 May 2021 10:02:36 +0200 Subject: [PATCH] RC_Channel: change or to || --- libraries/RC_Channel/RC_Channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index a7f499ef4e..80ebc11912 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -1195,7 +1195,7 @@ void RC_Channel::init_aux() bool RC_Channel::read_3pos_switch(RC_Channel::AuxSwitchPos &ret) const { const uint16_t in = get_radio_in(); - if (in <= RC_MIN_LIMIT_PWM or in >= RC_MAX_LIMIT_PWM) { + if (in <= RC_MIN_LIMIT_PWM || in >= RC_MAX_LIMIT_PWM) { return false; }