RC_Channel: change or to ||

This commit is contained in:
Pierre Kancir 2021-05-12 10:02:36 +02:00 committed by Randy Mackay
parent 002b00f69d
commit c17ef36354
1 changed files with 1 additions and 1 deletions

View File

@ -1195,7 +1195,7 @@ void RC_Channel::init_aux()
bool RC_Channel::read_3pos_switch(RC_Channel::AuxSwitchPos &ret) const bool RC_Channel::read_3pos_switch(RC_Channel::AuxSwitchPos &ret) const
{ {
const uint16_t in = get_radio_in(); 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; return false;
} }