Procházet zdrojové kódy

Fix factory reset menu rendering

Voinea Dragos před 3 roky
rodič
revize
4d3f056b81
1 změnil soubory, kde provedl 2 přidání a 10 odebrání
  1. 2 10
      Firmware/ultralcd.cpp

+ 2 - 10
Firmware/ultralcd.cpp

@@ -6171,17 +6171,9 @@ char reset_menu() {
     int8_t enc_dif = 0;
 	char cursor_pos = 0;
 
-    static const char iLa[] PROGMEM = "Language";
-    static const char iSt[] PROGMEM = "Statistics";
-    static const char iSh[] PROGMEM = "Shipping prep";
-    static const char iAl[] PROGMEM = "All Data";
+    const char *const item[items_no] PROGMEM = {PSTR("Language"), PSTR("Statistics"), PSTR("Shipping prep"), PSTR("All Data")
 #ifdef SNMM
-    static const char iBl[] PROGMEM = "Bowden length";
-#endif
-    
-    static const char *const item [items_no] PROGMEM = { iLa, iSt, iSh, iAl
-#ifdef SNMM
-        , iBl
+    , PSTR("Bowden length")
 #endif
     };