Skip to content

Commit

Permalink
bug: re enabled logic switch sticky.
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-droid authored and pfeerick committed Dec 7, 2022
1 parent 7c19f89 commit 52601fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radio/src/switches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ bool getLogicalSwitch(uint8_t idx)
else if (s == LS_FAMILY_TIMER) {
result = (LS_LAST_VALUE(mixerCurrentFlightMode, idx) <= 0);
}
// else if (s == LS_FAMILY_STICKY) {
// result = (LS_LAST_VALUE(mixerCurrentFlightMode, idx) & (1<<0));
// }
else if (s == LS_FAMILY_STICKY) {
result = (LS_LAST_VALUE(mixerCurrentFlightMode, idx) & (1<<0));
}
else if (s == LS_FAMILY_SAFE) {
result = LS_LAST_VALUE(mixerCurrentFlightMode, idx);
}
Expand Down

0 comments on commit 52601fd

Please sign in to comment.