Skip to content

Commit

Permalink
removed AndSw for Logic Switch mode Safe
Browse files Browse the repository at this point in the history
(cherry picked from commit 0d95f2f)
  • Loading branch information
shane-droid authored and pfeerick committed Dec 7, 2022
1 parent c7c7512 commit 5a631cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions radio/src/gui/colorlcd/model_logical_switches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,12 @@ class LogicalSwitchEditPage: public Page
}

// AND switch
if(cs->func != LS_FUNC_SAFE){
new StaticText(logicalSwitchOneWindow, grid.getLabelSlot(), STR_AND_SWITCH, 0, COLOR_THEME_PRIMARY1);
auto choice = new SwitchChoice(logicalSwitchOneWindow, grid.getFieldSlot(), -MAX_LS_ANDSW, MAX_LS_ANDSW, GET_SET_DEFAULT(cs->andsw));
choice->setAvailableHandler(isSwitchAvailableInLogicalSwitches);
grid.nextLine();
}

// Duration
new StaticText(logicalSwitchOneWindow, grid.getLabelSlot(), STR_DURATION, 0, COLOR_THEME_PRIMARY1);
Expand Down

0 comments on commit 5a631cd

Please sign in to comment.