Fix backlight not turning off on radio with physical on/off switch

This fixes #6270
This commit is contained in:
3djc
2018-12-20 09:22:47 +01:00
parent c3cb7b78fe
commit 74b9446a30
@@ -149,7 +149,11 @@ void readKeysAndTrims()
keys[index++].input(trims_input & i);
}
#if defined(PWR_BUTTON_PRESS)
if ((keys_input || trims_input || pwrPressed()) && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) {
#else
if ((keys_input || trims_input) && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) {
#endif
// on keypress turn the light on
backlightOn();
}