RAM saving

This commit is contained in:
Bertrand Songis
2019-02-09 12:12:36 +01:00
28 changed files with 122 additions and 47 deletions
@@ -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();
}