Skip to content

Commit

Permalink
Update libraries/RC_Channel/RC_Channel.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Hall <[email protected]>
  • Loading branch information
andyp1per and IamPete1 authored Jan 14, 2025
1 parent e19e06c commit d44abb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/RC_Channel/RC_Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1967,11 +1967,11 @@ RC_Channel::AuxSwitchPos RC_Channel::get_stick_gesture_pos() const

if (in < RC_Channel::AUX_PWM_TRIGGER_LOW) {
return switch_reversed ? RC_Channel::AuxSwitchPos::HIGH : RC_Channel::AuxSwitchPos::LOW;
} else if (in > RC_Channel::AUX_PWM_TRIGGER_HIGH) {
}
if (in > RC_Channel::AUX_PWM_TRIGGER_HIGH) {
return switch_reversed ? RC_Channel::AuxSwitchPos::LOW : RC_Channel::AuxSwitchPos::HIGH;
} else {
return RC_Channel::AuxSwitchPos::MIDDLE;
}
}
return RC_Channel::AuxSwitchPos::MIDDLE;
}

RC_Channel *RC_Channels::find_channel_for_option(const RC_Channel::AUX_FUNC option)
Expand Down

0 comments on commit d44abb2

Please sign in to comment.