Language selection auto-save option (#20915)

This commit is contained in:
ConstantijnCrijnen 2021-01-30 07:07:35 +01:00 committed by Scott Lahteine
parent 219f92c4ca
commit 164199614c
2 changed files with 4 additions and 1 deletions

View file

@ -1534,6 +1534,9 @@
//#define LCD_LANGUAGE_3 de
//#define LCD_LANGUAGE_4 es
//#define LCD_LANGUAGE_5 it
#ifdef LCD_LANGUAGE_2
//#define LCD_LANGUAGE_AUTO_SAVE // Automatically save language to EEPROM on change
#endif
#endif
//

View file

@ -34,7 +34,7 @@
static void set_lcd_language(const uint8_t inlang) {
ui.set_language(inlang);
(void)settings.save();
TERN_(LCD_LANGUAGE_AUTO_SAVE, (void)settings.save());
}
void menu_language() {