Browse Source

Language selection auto-save option (#20915)

ConstantijnCrijnen 3 years ago
parent
commit
d45ad8f827
No account linked to committer's email address
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      Marlin/Configuration_adv.h
  2. 1
    1
      Marlin/src/lcd/menu/menu_language.cpp

+ 3
- 0
Marlin/Configuration_adv.h View File

@@ -1534,6 +1534,9 @@
1534 1534
   //#define LCD_LANGUAGE_3 de
1535 1535
   //#define LCD_LANGUAGE_4 es
1536 1536
   //#define LCD_LANGUAGE_5 it
1537
+  #ifdef LCD_LANGUAGE_2
1538
+    //#define LCD_LANGUAGE_AUTO_SAVE // Automatically save language to EEPROM on change
1539
+  #endif
1537 1540
 #endif
1538 1541
 
1539 1542
 //

+ 1
- 1
Marlin/src/lcd/menu/menu_language.cpp View File

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

Loading…
Cancel
Save