feat: Pressing power button resets backlight timeout (depending on opts) (#1676)
* Power button resets backlight timer on colorlcd * Link to backlightMode opt, and not just colorlcd
This commit is contained in:
@@ -2043,6 +2043,10 @@ uint32_t pwrCheck()
|
||||
return e_power_off;
|
||||
}
|
||||
else if (pwrPressed()) {
|
||||
if (g_eeGeneral.backlightMode == e_backlight_mode_keys ||
|
||||
g_eeGeneral.backlightMode == e_backlight_mode_all)
|
||||
resetBacklightTimeout();
|
||||
|
||||
if (TELEMETRY_STREAMING()) {
|
||||
message = STR_MODEL_STILL_POWERED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user