File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ bool RC_Channel::read_6pos_switch(int8_t& position)
567
567
{
568
568
// calculate position of 6 pos switch
569
569
const uint16_t pulsewidth = get_radio_in ();
570
- if (pulsewidth <= RC_MIN_LIMIT_PWM || pulsewidth >= RC_MAX_LIMIT_PWM) {
570
+ if (pulsewidth < RC_MIN_LIMIT_PWM || pulsewidth > RC_MAX_LIMIT_PWM) {
571
571
return false ; // This is an error condition
572
572
}
573
573
@@ -1930,7 +1930,7 @@ void RC_Channel::init_aux()
1930
1930
bool RC_Channel::read_3pos_switch (RC_Channel::AuxSwitchPos &ret) const
1931
1931
{
1932
1932
const uint16_t in = get_radio_in ();
1933
- if (in <= RC_MIN_LIMIT_PWM || in >= RC_MAX_LIMIT_PWM) {
1933
+ if (in < RC_MIN_LIMIT_PWM || in > RC_MAX_LIMIT_PWM) {
1934
1934
return false ;
1935
1935
}
1936
1936
You can’t perform that action at this time.
0 commit comments