File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
ugs-core/src/com/willwinder/universalgcodesender
ugs-platform/ugs-platform-ugscore/src/main/java/com/willwinder/ugs/nbp/core/actions Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public static String getControllerStateText(ControllerState state) {
104
104
public static Color getControllerStateBackgroundColor (ControllerState state ) {
105
105
if (state == ControllerState .ALARM ) {
106
106
return ThemeColors .RED ;
107
- } else if (state == ControllerState .HOLD ) {
107
+ } else if (state == ControllerState .HOLD || state == ControllerState . SLEEP ) {
108
108
return ThemeColors .ORANGE ;
109
109
} else if (state == ControllerState .DOOR ) {
110
110
return ThemeColors .ORANGE ;
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ public boolean isEnabled() {
86
86
return backend .getControllerState () == ControllerState .IDLE ||
87
87
backend .getControllerState () == ControllerState .HOLD ||
88
88
backend .getControllerState () == ControllerState .CHECK ||
89
- backend .getControllerState () == ControllerState .ALARM ;
89
+ backend .getControllerState () == ControllerState .ALARM ||
90
+ backend .getControllerState () == ControllerState .SLEEP ;
90
91
}
91
92
92
93
@ Override
You can’t perform that action at this time.
0 commit comments