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:
Peter Feerick
2022-03-16 21:21:33 +10:00
committed by GitHub
parent a1e7d70722
commit 7abc59e626
+4
View File
@@ -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;
}