Fix backlight not turning off on radio with physical on/off switch
This fixes #6270
This commit is contained in:
@@ -149,7 +149,11 @@ void readKeysAndTrims()
|
|||||||
keys[index++].input(trims_input & i);
|
keys[index++].input(trims_input & i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(PWR_BUTTON_PRESS)
|
||||||
if ((keys_input || trims_input || pwrPressed()) && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) {
|
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
|
// on keypress turn the light on
|
||||||
backlightOn();
|
backlightOn();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user