Skip to content

Commit

Permalink
glcd.cpp: fix Switch menu hanging when mode=OFF and switch toggling t…
Browse files Browse the repository at this point in the history
…o Access B
  • Loading branch information
dingo35 committed May 14, 2024
1 parent 7aa8aff commit 48c5684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SmartEVSE-3/src/glcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ void GLCDMenu(uint8_t Buttons) {
BacklightTimer = BACKLIGHT; // delay before LCD backlight turns off.

// Disable buttons when access switch is configured and access is denied
if ((getItemValue(MENU_SWITCH) == 1 || getItemValue(MENU_SWITCH) == 2) && Access_bit == 0)
if ((getItemValue(MENU_SWITCH) == 1 || getItemValue(MENU_SWITCH) == 2) && Access_bit == 0 && LCDNav == 0)
return;

if (getItemValue(MENU_RCMON) == 1 && (ErrorFlags & RCM_TRIPPED) && RCMFAULT == LOW) { // RCM was tripped, but RCM level is back to normal
Expand Down

0 comments on commit 48c5684

Please sign in to comment.