Skip to content

Commit

Permalink
removed AndSw for Logic Switch mode Safe
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-droid committed Jun 14, 2022
1 parent 62a3fd1 commit 0d95f2f
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 @@ -192,10 +192,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 0d95f2f

Please sign in to comment.