1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 23:13:07 +01:00

Dont't display ILUM on Min Power

This commit is contained in:
Tobias E
2025-01-26 13:09:35 +00:00
parent 93402841cb
commit 38f1d5de44
2 changed files with 3 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ typedef struct{
uint16_t fgcolor;
uint16_t bgcolor;
bool keylock = false;
String powermode;
} CommonData;
//a base class that all pages must inherit from
@@ -112,7 +113,7 @@ class Page{
commonData->keydata[2].label = "#LEFT";
commonData->keydata[3].label = "#RIGHT";
commonData->keydata[4].label = "";
if (commonData->backlight.mode == KEY) {
if ((commonData->backlight.mode == KEY) && !(commonData->powermode == "Min Power")) {
commonData->keydata[5].label = "ILUM";
} else {
commonData->keydata[5].label = "";