Browse Source

Merge Menu Updates

Richard Wackerbarth 10 years ago
parent
commit
b5987de08a

+ 2
- 4
Marlin/language_an.h View File

@@ -81,10 +81,8 @@
81 81
 #define MSG_TEMPERATURE                     "Temperatura"
82 82
 #define MSG_MOTION                          "Movimiento"
83 83
 #define MSG_VOLUMETRIC                      "Filament"
84
-#define MSG_VOLUMETRIC_ENABLED		        "E in mm3"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
84
+#define MSG_VOLUMETRIC_ENABLED              "E in mm3"
85
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
88 86
 #define MSG_CONTRAST                        "Contrast"
89 87
 #define MSG_STORE_EPROM                     "Alzar Memoria"
90 88
 #define MSG_LOAD_EPROM                      "Cargar Memoria"

+ 5
- 7
Marlin/language_bg.h View File

@@ -7,12 +7,12 @@
7 7
  */
8 8
 #ifndef LANGUAGE_BG_H
9 9
 #define LANGUAGE_BG_H
10
- 
10
+
11 11
 #define MAPPER_D0D1                // For Cyrillic
12 12
 // Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
13 13
 //#define SIMULATE_ROMFONT
14 14
 #define DISPLAY_CHARSET_ISO10646_5
15
- 
15
+
16 16
 #define WELCOME_MSG                         MACHINE_NAME " Готов."
17 17
 #define MSG_SD_INSERTED                     "Картата е поставена"
18 18
 #define MSG_SD_REMOVED                      "Картата е извадена"
@@ -83,9 +83,7 @@
83 83
 #define MSG_MOTION                          "Движение"
84 84
 #define MSG_VOLUMETRIC                      "Нишка"
85 85
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Диам. нишка 1"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Диам. нишка 2"
88
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Диам. нишка 3"
86
+#define MSG_FILAMENT_DIAM                   "Диам. нишка"
89 87
 #define MSG_CONTRAST                        "LCD контраст"
90 88
 #define MSG_STORE_EPROM                     "Запази в EPROM"
91 89
 #define MSG_LOAD_EPROM                      "Зареди от EPROM"
@@ -126,7 +124,7 @@
126 124
 #define MSG_ENDSTOP_ABORT                   "Стоп Кр.Изключватели"
127 125
 #define MSG_END_HOUR                        "часа"
128 126
 #define MSG_END_MINUTE                      "минути"
129
- 
127
+
130 128
 #if ENABLED(DELTA_CALIBRATION_MENU)
131 129
     #define MSG_DELTA_CALIBRATE             "Делта Калибровка"
132 130
     #define MSG_DELTA_CALIBRATE_X           "Калибровка X"
@@ -134,5 +132,5 @@
134 132
     #define MSG_DELTA_CALIBRATE_Z           "Калибровка Z"
135 133
     #define MSG_DELTA_CALIBRATE_CENTER      "Калибровка Център"
136 134
 #endif // DELTA_CALIBRATION_MENU
137
- 
135
+
138 136
 #endif // LANGUAGE_BG_H

+ 2
- 4
Marlin/language_ca.h View File

@@ -8,7 +8,7 @@
8 8
 #ifndef LANGUAGE_CA_H
9 9
 #define LANGUAGE_CA_H
10 10
 
11
-//#define MAPPER_NON 
11
+//#define MAPPER_NON
12 12
 #define MAPPER_C2C3  // because of "ó"
13 13
 // Define SIMULATE_ROMFONT to see what is seen on the character based display defined in Configuration.h
14 14
 //#define SIMULATE_ROMFONT
@@ -83,9 +83,7 @@
83 83
 #define MSG_MOTION                          "Moviment"
84 84
 #define MSG_VOLUMETRIC                      "Filament"
85 85
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
88
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
86
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
89 87
 #define MSG_CONTRAST                        "Contrast de LCD"
90 88
 #define MSG_STORE_EPROM                     "Desar a memoria"
91 89
 #define MSG_LOAD_EPROM                      "Carregar de mem."

+ 1
- 16
Marlin/language_cn.h View File

@@ -30,10 +30,6 @@
30 30
   #define MSG_PREHEAT_ABS_ALL                 MSG_PREHEAT_ABS " \xc5\xc6"
31 31
   #define MSG_PREHEAT_ABS_BEDONLY             MSG_PREHEAT_ABS " \xbe\xc6"
32 32
   #define MSG_PREHEAT_ABS_SETTINGS            MSG_PREHEAT_ABS " \xbe\xbf"
33
-  #define MSG_H1                              "1"
34
-  #define MSG_H2                              "2"
35
-  #define MSG_H3                              "3"
36
-  #define MSG_H4                              "4"
37 33
   #define MSG_COOLDOWN                        "\xc8\xc9"
38 34
   #define MSG_SWITCH_PS_ON                    "\xb9\xcb\xca\xb3"
39 35
   #define MSG_SWITCH_PS_OFF                   "\xb9\xcb\xb5\xb6"
@@ -50,11 +46,6 @@
50 46
   #define MSG_MOVE_10MM                       "\xc1\xb2 10mm"
51 47
   #define MSG_SPEED                           "\xd1\xd2"
52 48
   #define MSG_NOZZLE                          "\xd3\xd4"
53
-  #define MSG_N0                              " 0"
54
-  #define MSG_N1                              " 1"
55
-  #define MSG_N2                              " 2"
56
-  #define MSG_N3                              " 3"
57
-  #define MSG_N4                              " 4"
58 49
   #define MSG_BED                             "\xc4\xc7"
59 50
   #define MSG_FAN_SPEED                       "\xd5\xd6\xd1\xd2"
60 51
   #define MSG_FLOW                            "\xcc\xad\xd1\xd2"
@@ -69,9 +60,6 @@
69 60
   #define MSG_PID_I                           "PID-I"
70 61
   #define MSG_PID_D                           "PID-D"
71 62
   #define MSG_PID_C                           "PID-C"
72
-  #define MSG_E2                              " E2"
73
-  #define MSG_E3                              " E3"
74
-  #define MSG_E4                              " E4"
75 63
   #define MSG_ACC                             "Accel"
76 64
   #define MSG_VXY_JERK                        "Vxy-jerk"
77 65
   #define MSG_VZ_JERK                         "Vz-jerk"
@@ -94,10 +82,7 @@
94 82
   #define MSG_MOTION                          "\xdf\xb2"
95 83
   #define MSG_VOLUMETRIC                      "Filament"
96 84
   #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
97
-  #define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
98
-  #define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
99
-  #define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
100
-  #define MSG_FILAMENT_SIZE_EXTRUDER_3        "Fil. Dia. 4"
85
+  #define MSG_FILAMENT_DIAM                   "Fil. Dia."
101 86
   #define MSG_CONTRAST                        "LCD contrast"
102 87
   #define MSG_STORE_EPROM                     "Store memory"
103 88
   #define MSG_LOAD_EPROM                      "Load memory"

+ 2
- 20
Marlin/language_cz.h View File

@@ -2,7 +2,7 @@
2 2
  * Czech
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  * Translated by Petr Zahradnik, Computer Laboratory
8 8
  * Blog and video blog Zahradnik se bavi
@@ -36,10 +36,6 @@
36 36
 #define MSG_PREHEAT_ABS_ALL                 MSG_PREHEAT_ABS " Vse"
37 37
 #define MSG_PREHEAT_ABS_BEDONLY             MSG_PREHEAT_ABS " Podloz"
38 38
 #define MSG_PREHEAT_ABS_SETTINGS            MSG_PREHEAT_ABS " Nast"
39
-#define MSG_H1                              "1"
40
-#define MSG_H2                              "2"
41
-#define MSG_H3                              "3"
42
-#define MSG_H4                              "4"
43 39
 #define MSG_COOLDOWN                        "Zchladit"
44 40
 #define MSG_SWITCH_PS_ON                    "Zapnout napajeni"
45 41
 #define MSG_SWITCH_PS_OFF                   "Vypnout napajeni"
@@ -51,19 +47,11 @@
51 47
 #define MSG_MOVE_Y                          "Posunout Y"
52 48
 #define MSG_MOVE_Z                          "Posunout Z"
53 49
 #define MSG_MOVE_E                          "Extruder"
54
-#define MSG_MOVE_E1                         "Extruder1"
55
-#define MSG_MOVE_E2                         "Extruder2"
56
-#define MSG_MOVE_E3                         "Extruder3"
57 50
 #define MSG_MOVE_01MM                       "Posunout o 0,1mm"
58 51
 #define MSG_MOVE_1MM                        "Posunout o 1mm"
59 52
 #define MSG_MOVE_10MM                       "Posunout o 10mm"
60 53
 #define MSG_SPEED                           "Rychlost"
61 54
 #define MSG_NOZZLE                          "Tryska"
62
-#define MSG_N0                              " 0"
63
-#define MSG_N1                              " 1"
64
-#define MSG_N2                              " 2"
65
-#define MSG_N3                              " 3"
66
-#define MSG_N4                              " 4"
67 55
 #define MSG_BED                             "Podlozka"
68 56
 #define MSG_FAN_SPEED                       "Rychlost vent."
69 57
 #define MSG_FLOW                            "Prutok"
@@ -78,9 +66,6 @@
78 66
 #define MSG_PID_I                           "PID-I"
79 67
 #define MSG_PID_D                           "PID-D"
80 68
 #define MSG_PID_C                           "PID-C"
81
-#define MSG_E2                              " E2"
82
-#define MSG_E3                              " E3"
83
-#define MSG_E4                              " E4"
84 69
 #define MSG_ACC                             "Zrychl"
85 70
 #define MSG_VXY_JERK                        "Vxy-jerk"
86 71
 #define MSG_VZ_JERK                         "Vz-jerk"
@@ -103,10 +88,7 @@
103 88
 #define MSG_MOTION                          "Pohyb"
104 89
 #define MSG_VOLUMETRIC                      "Filament"
105 90
 #define MSG_VOLUMETRIC_ENABLED              "E na mm3"
106
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Prum. 1"
107
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Prum. 2"
108
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Prum. 3"
109
-#define MSG_FILAMENT_SIZE_EXTRUDER_3        "Fil. Prum. 4"
91
+#define MSG_FILAMENT_DIAM                   "Fil. Prum."
110 92
 #define MSG_CONTRAST                        "Kontrast LCD"
111 93
 #define MSG_STORE_EPROM                     "Ulozit nastaveni"
112 94
 #define MSG_LOAD_EPROM                      "Nacist nastaveni"

+ 1
- 8
Marlin/language_da.h View File

@@ -42,8 +42,6 @@
42 42
 #define MSG_MOVE_Y                          "Flyt Y"
43 43
 #define MSG_MOVE_Z                          "Flyt Z"
44 44
 #define MSG_MOVE_E                          "Extruder"
45
-#define MSG_MOVE_E1                         "Extruder2"
46
-#define MSG_MOVE_E2                         "Extruder3"
47 45
 #define MSG_MOVE_01MM                       "Flyt 0.1mm"
48 46
 #define MSG_MOVE_1MM                        "Flyt 1mm"
49 47
 #define MSG_MOVE_10MM                       "Flyt 10mm"
@@ -54,9 +52,6 @@
54 52
 #define MSG_BED                             "Plade"
55 53
 #define MSG_FAN_SPEED                       "Blæser hastighed"
56 54
 #define MSG_FLOW                            "Flow"
57
-#define MSG_FLOW0                           "Flow 0"
58
-#define MSG_FLOW1                           "Flow 1"
59
-#define MSG_FLOW2                           "Flow 2"
60 55
 #define MSG_CONTROL                         "Kontrol"
61 56
 #define MSG_MIN                             " \002 Min"
62 57
 #define MSG_MAX                             " \002 Max"
@@ -89,9 +84,7 @@
89 84
 #define MSG_MOTION                          "Motion"
90 85
 #define MSG_VOLUMETRIC                      "Filament"
91 86
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
92
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
93
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
94
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
87
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
95 88
 #define MSG_CONTRAST                        "LCD kontrast"
96 89
 #define MSG_STORE_EPROM                     "Gem i EEPROM"
97 90
 #define MSG_LOAD_EPROM                      "Hent fra EEPROM"

+ 1
- 3
Marlin/language_de.h View File

@@ -81,9 +81,7 @@
81 81
 #define MSG_MOTION                          "Bewegung"
82 82
 #define MSG_VOLUMETRIC                      "Filament"
83 83
 #define MSG_VOLUMETRIC_ENABLED              "E in mm³"
84
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Filament D 1"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Filament D 2"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Filament D 3"
84
+#define MSG_FILAMENT_DIAM                   "Filament D"
87 85
 #define MSG_CONTRAST                        "LCD Kontrast"
88 86
 #define MSG_STORE_EPROM                     "EPROM speichern"
89 87
 #define MSG_LOAD_EPROM                      "EPROM laden"

+ 26
- 26
Marlin/language_en.h View File

@@ -120,21 +120,18 @@
120 120
 #ifndef MSG_MOVE_E
121 121
 #define MSG_MOVE_E                          "Extruder"
122 122
 #endif
123
-#if EXTRUDERS > 1
124
-  #ifndef MSG_MOVE_E1
125
-  #define MSG_MOVE_E1                       "Extruder1"
126
-  #endif
127
-  #if EXTRUDERS > 2
128
-    #ifndef MSG_MOVE_E2
129
-    #define MSG_MOVE_E2                     "Extruder2"
130
-    #endif
131
-    #if EXTRUDERS > 3
132
-      #ifndef MSG_MOVE_E3
133
-      #define MSG_MOVE_E3                   "Extruder3"
134
-      #endif
135
-    #endif
136
-  #endif // EXTRUDERS > 2
137
-#endif // EXTRUDERS > 1
123
+#ifndef MSG_MOVE_E1
124
+#define MSG_MOVE_E1                         "1"
125
+#endif
126
+#ifndef MSG_MOVE_E2
127
+#define MSG_MOVE_E2                         "2"
128
+#endif
129
+#ifndef MSG_MOVE_E3
130
+#define MSG_MOVE_E3                         "3"
131
+#endif
132
+#ifndef MSG_MOVE_E4
133
+#define MSG_MOVE_E4                         "4"
134
+#endif
138 135
 #ifndef MSG_MOVE_01MM
139 136
 #define MSG_MOVE_01MM                       "Move 0.1mm"
140 137
 #endif
@@ -150,9 +147,6 @@
150 147
 #ifndef MSG_NOZZLE
151 148
 #define MSG_NOZZLE                          "Nozzle"
152 149
 #endif
153
-#ifndef MSG_N0
154
-#define MSG_N0                              " 0"
155
-#endif
156 150
 #ifndef MSG_N1
157 151
 #define MSG_N1                              " 1"
158 152
 #endif
@@ -207,6 +201,9 @@
207 201
 #ifndef MSG_PID_C
208 202
 #define MSG_PID_C                           "PID-C"
209 203
 #endif
204
+#ifndef MSG_E1
205
+#define MSG_E1                              " E1"
206
+#endif
210 207
 #ifndef MSG_E2
211 208
 #define MSG_E2                              " E2"
212 209
 #endif
@@ -282,17 +279,20 @@
282 279
 #ifndef MSG_VOLUMETRIC_ENABLED
283 280
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
284 281
 #endif
285
-#ifndef MSG_FILAMENT_SIZE_EXTRUDER_0
286
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
282
+#ifndef MSG_FILAMENT_DIAM
283
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
284
+#endif
285
+#ifndef MSG_DIAM_E1
286
+#define MSG_DIAM_E1                         " 1"
287 287
 #endif
288
-#ifndef MSG_FILAMENT_SIZE_EXTRUDER_1
289
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
288
+#ifndef MSG_DIAM_E2
289
+#define MSG_DIAM_E2                         " 2"
290 290
 #endif
291
-#ifndef MSG_FILAMENT_SIZE_EXTRUDER_2
292
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
291
+#ifndef MSG_DIAM_E3
292
+#define MSG_DIAM_E3                         " 3"
293 293
 #endif
294
-#ifndef MSG_FILAMENT_SIZE_EXTRUDER_3
295
-#define MSG_FILAMENT_SIZE_EXTRUDER_3        "Fil. Dia. 4"
294
+#ifndef MSG_DIAM_E4
295
+#define MSG_DIAM_E4                         " 4"
296 296
 #endif
297 297
 #ifndef MSG_CONTRAST
298 298
 #define MSG_CONTRAST                        "LCD contrast"

+ 2
- 4
Marlin/language_es.h View File

@@ -81,10 +81,8 @@
81 81
 #define MSG_TEMPERATURE                     "Temperatura"
82 82
 #define MSG_MOTION                          "Movimiento"
83 83
 #define MSG_VOLUMETRIC                      "Filamento"
84
-#define MSG_VOLUMETRIC_ENABLED		        "E in mm3"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
84
+#define MSG_VOLUMETRIC_ENABLED              "E in mm3"
85
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
88 86
 #define MSG_CONTRAST                        "Contraste"
89 87
 #define MSG_STORE_EPROM                     "Guardar memoria"
90 88
 #define MSG_LOAD_EPROM                      "Cargar memoria"

+ 2
- 4
Marlin/language_eu.h View File

@@ -81,10 +81,8 @@
81 81
 #define MSG_TEMPERATURE                     "Tenperatura"
82 82
 #define MSG_MOTION                          "Mugimendua"
83 83
 #define MSG_VOLUMETRIC                      "Filament"
84
-#define MSG_VOLUMETRIC_ENABLED		        "E in mm3"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
84
+#define MSG_VOLUMETRIC_ENABLED              "E in mm3"
85
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
88 86
 #define MSG_CONTRAST                        "LCD kontrastea"
89 87
 #define MSG_STORE_EPROM                     "Gorde memoria"
90 88
 #define MSG_LOAD_EPROM                      "Kargatu memoria"

+ 1
- 3
Marlin/language_fi.h View File

@@ -82,9 +82,7 @@
82 82
 #define MSG_MOTION                          "Liike"
83 83
 #define MSG_VOLUMETRIC                      "Filament"
84 84
 #define MSG_VOLUMETRIC_ENABLED              "E in mm³"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
85
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
88 86
 #define MSG_CONTRAST                        "LCD kontrasti"
89 87
 #define MSG_STORE_EPROM                     "Tallenna muistiin"
90 88
 #define MSG_LOAD_EPROM                      "Lataa muistista"

+ 1
- 3
Marlin/language_fr.h View File

@@ -84,9 +84,7 @@
84 84
 #define MSG_MOTION                          "Mouvement"
85 85
 #define MSG_VOLUMETRIC                      "Filament"
86 86
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
88
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
89
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
87
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
90 88
 #define MSG_CONTRAST                        "Contraste LCD"
91 89
 #define MSG_STORE_EPROM                     "Sauver config"
92 90
 #define MSG_LOAD_EPROM                      "Lire config"

+ 2
- 5
Marlin/language_it.h View File

@@ -81,11 +81,8 @@
81 81
 #define MSG_TEMPERATURE                     "Temperatura"
82 82
 #define MSG_MOTION                          "Movimento"
83 83
 #define MSG_VOLUMETRIC                      "Filament"
84
-#define MSG_VOLUMETRIC_ENABLED		          "E in mm³"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Diam. filo 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Diam. filo 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Diam. filo 3"
88
-#define MSG_FILAMENT_SIZE_EXTRUDER_3        "Diam. filo 4"
84
+#define MSG_VOLUMETRIC_ENABLED              "E in mm³"
85
+#define MSG_FILAMENT_DIAM                   "Diam. filo"
89 86
 #define MSG_CONTRAST                        "Contrasto LCD"
90 87
 #define MSG_STORE_EPROM                     "Salva in EEPROM"
91 88
 #define MSG_LOAD_EPROM                      "Carica da EEPROM"

+ 2
- 5
Marlin/language_kana.h View File

@@ -5,7 +5,7 @@
5 5
  * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8
- 
8
+
9 9
 #ifndef LANGUAGE_KANA_H
10 10
 #define LANGUAGE_KANA_H
11 11
 
@@ -84,10 +84,7 @@
84 84
 #define MSG_MOTION                          "\xb3\xba\xde\xb7\xbe\xaf\xc3\xb2"                             // "Motion"
85 85
 #define MSG_VOLUMETRIC                      "\xcc\xa8\xd7\xd2\xdd\xc4"                                     // "Filament"
86 86
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
88
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
89
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
90
-#define MSG_FILAMENT_SIZE_EXTRUDER_3        "Fil. Dia. 4"
87
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
91 88
 #define MSG_CONTRAST                        "LCD\xba\xdd\xc4\xd7\xbd\xc4"                                  // "LCD contrast"
92 89
 #define MSG_STORE_EPROM                     "\xd2\xd3\xd8\xcd\xb6\xb8\xc9\xb3"                             // "Store memory"
93 90
 #define MSG_LOAD_EPROM                      "\xd2\xd3\xd8\xb6\xd7\xd6\xd0\ba\xd0"                          // "Load memory"

+ 3
- 6
Marlin/language_kana_utf8.h View File

@@ -5,7 +5,7 @@
5 5
  * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8
- 
8
+
9 9
 #ifndef LANGUAGE_KANA_UTF_H
10 10
 #define LANGUAGE_KANA_UTF_H
11 11
 
@@ -15,7 +15,7 @@
15 15
 #define DISPLAY_CHARSET_ISO10646_KANA
16 16
 
17 17
 // This is very crude replacement of the codes used in language_kana.h from somebody who really does not know what he is doing.
18
-// Just to show the potential benefit of unicode. 
18
+// Just to show the potential benefit of unicode.
19 19
 // This translation can be improved by using the full charset of unicode codeblock U+30A0 to U+30FF.
20 20
 
21 21
 // 片仮名表示定義
@@ -88,10 +88,7 @@
88 88
 #define MSG_MOTION                          "ウゴキセツテイ"                // "Motion"
89 89
 #define MSG_VOLUMETRIC                      "フィラナント"                    // "Filament"
90 90
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
91
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
92
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
93
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
94
-#define MSG_FILAMENT_SIZE_EXTRUDER_3        "Fil. Dia. 4"
91
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
95 92
 #define MSG_CONTRAST                        "LCDコントラスト"                 // "LCD contrast"
96 93
 #define MSG_STORE_EPROM                     "ナモリヘセケノウ"                 // "Store memory"
97 94
 #define MSG_LOAD_EPROM                      "ナモリセラヨミbaミ"               // "Load memory"

+ 2
- 4
Marlin/language_nl.h View File

@@ -81,10 +81,8 @@
81 81
 #define MSG_TEMPERATURE                     "Temperatuur"
82 82
 #define MSG_MOTION                          "Beweging"
83 83
 #define MSG_VOLUMETRIC                      "Filament"
84
-#define MSG_VOLUMETRIC_ENABLED		        "E in mm3"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
84
+#define MSG_VOLUMETRIC_ENABLED              "E in mm3"
85
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
88 86
 #define MSG_CONTRAST                        "LCD contrast"
89 87
 #define MSG_STORE_EPROM                     "Geheugen opslaan"
90 88
 #define MSG_LOAD_EPROM                      "Geheugen laden"

+ 2
- 4
Marlin/language_pl.h View File

@@ -81,10 +81,8 @@
81 81
 #define MSG_TEMPERATURE                     "Temperatura"
82 82
 #define MSG_MOTION                          "Ruch"
83 83
 #define MSG_VOLUMETRIC                      "Filament"
84
-#define MSG_VOLUMETRIC_ENABLED		        "E in mm3"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
84
+#define MSG_VOLUMETRIC_ENABLED              "E in mm3"
85
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
88 86
 #define MSG_CONTRAST                        "Kontrast LCD"
89 87
 #define MSG_STORE_EPROM                     "Zapisz w pamieci"
90 88
 #define MSG_LOAD_EPROM                      "Wczytaj z pamieci"

+ 1
- 3
Marlin/language_pt-br.h View File

@@ -82,9 +82,7 @@
82 82
 #define MSG_MOTION                          "Movimento"
83 83
 #define MSG_VOLUMETRIC                      "Filament"
84 84
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Dia. 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Dia. 3"
85
+#define MSG_FILAMENT_DIAM                   "Fil. Dia."
88 86
 #define MSG_CONTRAST                        "Contrast"
89 87
 #define MSG_STORE_EPROM                     "Guardar memoria"
90 88
 #define MSG_LOAD_EPROM                      "Carregar memoria"

+ 1
- 3
Marlin/language_pt.h View File

@@ -82,9 +82,7 @@
82 82
 #define MSG_MOTION                          "Movimento"
83 83
 #define MSG_VOLUMETRIC                      "Filamento"
84 84
 #define MSG_VOLUMETRIC_ENABLED              "E in mm3"
85
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Diam. 1"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Fil. Diam. 2"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Fil. Diam. 3"
85
+#define MSG_FILAMENT_DIAM                   "Fil. Diam."
88 86
 #define MSG_CONTRAST                        "Contraste"
89 87
 #define MSG_STORE_EPROM                     "Guardar na memoria"
90 88
 #define MSG_LOAD_EPROM                      "Carregar da memoria"

+ 1
- 3
Marlin/language_ru.h View File

@@ -83,9 +83,7 @@
83 83
 #define MSG_MOTION                          "Механика"
84 84
 #define MSG_VOLUMETRIC                      "Пруток"
85 85
 #define MSG_VOLUMETRIC_ENABLED              "E в mm3"
86
-#define MSG_FILAMENT_SIZE_EXTRUDER_0        "Диаметр прутка 1"
87
-#define MSG_FILAMENT_SIZE_EXTRUDER_1        "Диаметр прутка 2"
88
-#define MSG_FILAMENT_SIZE_EXTRUDER_2        "Диаметр прутка 3"
86
+#define MSG_FILAMENT_DIAM                   "Диаметр прутка"
89 87
 #define MSG_CONTRAST                        "Контраст LCD"
90 88
 #define MSG_STORE_EPROM                     "Сохранить в EEPROM"
91 89
 #define MSG_LOAD_EPROM                      "Считать из EEPROM"

+ 10
- 10
Marlin/language_test.h View File

@@ -8,16 +8,16 @@
8 8
 #ifndef LANGUAGE_TEST_H
9 9
 #define LANGUAGE_TEST_H
10 10
 
11
-// Select ONE of the following Mappers. 
12
-// They decide what to do with a symbol in the area of [0x80:0xFF]. They take a symbol of this language file and make them point 
11
+// Select ONE of the following Mappers.
12
+// They decide what to do with a symbol in the area of [0x80:0xFF]. They take a symbol of this language file and make them point
13 13
 // into an array with 128 cells, where they'll find the place of the symbol of the font in use.
14 14
 //
15
-// a.)For ASCII coded Language_xx.h files like (en) there are no occurrences of symbols above 0x7F so no mapper is needed. 
15
+// a.)For ASCII coded Language_xx.h files like (en) there are no occurrences of symbols above 0x7F so no mapper is needed.
16 16
 //   If such a symbol appears it is mapped directly into the font. This is the case for the language files we used until now, with all the STR_XX or
17 17
 //   "\xxx" symbols. All Symbols are only one byte long.
18 18
 // b.) For Unicoded Language_xx.h files (currently ru, de and kana_utf8 ) the non ASCII [0x00-0x7F] symbols are represented by more then one byte.
19 19
 //   In the case of two bytes the first is pointing to a 'codepage' and the second to a place in the codepage. These codepages contain 64 symbols.
20
-//   So two of them can be mapped. For most of the European languages the necessary symbols are contained in the pages C2 and C3. Cyrillic uses D0 
20
+//   So two of them can be mapped. For most of the European languages the necessary symbols are contained in the pages C2 and C3. Cyrillic uses D0
21 21
 //   and D1.
22 22
 // c.) For katakana (one of the Japanese symbol sets) Unicode uses 3 bytes. Here the second byte also points to a codepage and byte 3 to the symbol.
23 23
 //   I hope the pages E282 and E283 are sufficient to write katakana.
@@ -124,14 +124,14 @@
124 124
   #define MSG_COOLDOWN                        STRG_C3_9
125 125
   #define MSG_SWITCH_PS_OFF                   STRG_C3_a
126 126
   #define MSG_MOVE_AXIS                       STRG_C3_b
127
-  
127
+
128 128
   #define MSG_MAIN                            STRG_OKTAL_2
129 129
   #define MSG_TEMPERATURE                     STRG_OKTAL_3
130 130
   #define MSG_MOTION                          STRG_OKTAL_4
131 131
   #define MSG_VOLUMETRIC                      STRG_OKTAL_5
132 132
   #define MSG_CONTRAST                        STRG_OKTAL_6
133 133
   #define MSG_RESTORE_FAILSAFE                STRG_OKTAL_7
134
-  
134
+
135 135
   #define MSG_NOZZLE                          STRG_OKTAL_8
136 136
   #define MSG_FAN_SPEED                       STRG_OKTAL_9
137 137
   #define MSG_AUTOTEMP                        STRG_OKTAL_a
@@ -159,14 +159,14 @@
159 159
   #define MSG_COOLDOWN                        STRG_D1_9
160 160
   #define MSG_SWITCH_PS_OFF                   STRG_D1_a
161 161
   #define MSG_MOVE_AXIS                       STRG_D1_b
162
-  
162
+
163 163
   #define MSG_MAIN                            STRG_OKTAL_2
164 164
   #define MSG_TEMPERATURE                     STRG_OKTAL_3
165 165
   #define MSG_MOTION                          STRG_OKTAL_4
166 166
   #define MSG_VOLUMETRIC                      STRG_OKTAL_5
167 167
   #define MSG_CONTRAST                        STRG_OKTAL_6
168 168
   #define MSG_RESTORE_FAILSAFE                STRG_OKTAL_7
169
-  
169
+
170 170
   #define MSG_NOZZLE                          STRG_OKTAL_8
171 171
   #define MSG_FAN_SPEED                       STRG_OKTAL_9
172 172
   #define MSG_AUTOTEMP                        STRG_OKTAL_a
@@ -194,14 +194,14 @@
194 194
   #define MSG_COOLDOWN                        STRG_E383_9
195 195
   #define MSG_SWITCH_PS_OFF                   STRG_E383_a
196 196
   #define MSG_MOVE_AXIS                       STRG_E383_b
197
-  
197
+
198 198
   #define MSG_MAIN                            STRG_OKTAL_2
199 199
   #define MSG_TEMPERATURE                     STRG_OKTAL_3
200 200
   #define MSG_MOTION                          STRG_OKTAL_4
201 201
   #define MSG_VOLUMETRIC                      STRG_OKTAL_5
202 202
   #define MSG_CONTRAST                        STRG_OKTAL_6
203 203
   #define MSG_RESTORE_FAILSAFE                STRG_OKTAL_7
204
-  
204
+
205 205
   #define MSG_NOZZLE                          STRG_OKTAL_8
206 206
   #define MSG_FAN_SPEED                       STRG_OKTAL_9
207 207
   #define MSG_AUTOTEMP                        STRG_OKTAL_a

+ 103
- 85
Marlin/ultralcd.cpp View File

@@ -495,14 +495,19 @@ static void lcd_tune_menu() {
495 495
 
496 496
   //
497 497
   // Nozzle:
498
+  // Nozzle 1:
498 499
   // Nozzle 2:
499 500
   // Nozzle 3:
500 501
   // Nozzle 4:
501 502
   //
502
-  #if TEMP_SENSOR_0 != 0
503
-    MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
504
-  #endif
505
-  #if EXTRUDERS > 1
503
+  #if EXTRUDERS == 1
504
+    #if TEMP_SENSOR_0 != 0
505
+      MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
506
+    #endif
507
+  #else //EXTRUDERS > 1
508
+    #if TEMP_SENSOR_0 != 0
509
+      MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_NOZZLE MSG_N1, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
510
+    #endif
506 511
     #if TEMP_SENSOR_1 != 0
507 512
       MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_NOZZLE MSG_N2, &target_temperature[1], 0, HEATER_1_MAXTEMP - 15);
508 513
     #endif
@@ -536,18 +541,21 @@ static void lcd_tune_menu() {
536 541
   MENU_ITEM_EDIT(int3, MSG_FLOW, &extruder_multiplier[active_extruder], 10, 999);
537 542
 
538 543
   //
539
-  // Flow 0:
544
+  // Flow:
540 545
   // Flow 1:
541 546
   // Flow 2:
542 547
   // Flow 3:
548
+  // Flow 4:
543 549
   //
544
-  MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N0, &extruder_multiplier[0], 10, 999);
545
-  #if EXTRUDERS > 1
546
-    MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N1, &extruder_multiplier[1], 10, 999);
550
+  #if EXTRUDERS == 1
551
+    MENU_ITEM_EDIT(int3, MSG_FLOW, &extruder_multiplier[0], 10, 999);
552
+  #else // EXTRUDERS > 1
553
+    MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N1, &extruder_multiplier[0], 10, 999);
554
+    MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N2, &extruder_multiplier[1], 10, 999);
547 555
     #if EXTRUDERS > 2
548
-      MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N2, &extruder_multiplier[2], 10, 999);
556
+      MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N3, &extruder_multiplier[2], 10, 999);
549 557
       #if EXTRUDERS > 3
550
-        MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N3, &extruder_multiplier[3], 10, 999);
558
+        MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N4, &extruder_multiplier[3], 10, 999);
551 559
       #endif //EXTRUDERS > 3
552 560
     #endif //EXTRUDERS > 2
553 561
   #endif //EXTRUDERS > 1
@@ -809,9 +817,9 @@ static void lcd_move_x() { _lcd_move(PSTR(MSG_MOVE_X), X_AXIS, X_MIN_POS, X_MAX_
809 817
 static void lcd_move_y() { _lcd_move(PSTR(MSG_MOVE_Y), Y_AXIS, Y_MIN_POS, Y_MAX_POS); }
810 818
 static void lcd_move_z() { _lcd_move(PSTR(MSG_MOVE_Z), Z_AXIS, Z_MIN_POS, Z_MAX_POS); }
811 819
 static void lcd_move_e(
812
-#if EXTRUDERS > 1
813
-  uint8_t e = 0
814
-#endif
820
+  #if EXTRUDERS > 1
821
+    uint8_t e
822
+  #endif
815 823
 ) {
816 824
   #if EXTRUDERS > 1
817 825
     unsigned short original_active_extruder = active_extruder;
@@ -823,7 +831,24 @@ static void lcd_move_e(
823 831
     line_to_current(E_AXIS);
824 832
     lcdDrawUpdate = 1;
825 833
   }
826
-  if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR(MSG_MOVE_E), ftostr31(current_position[E_AXIS]));
834
+  if (lcdDrawUpdate) {
835
+    PGM_P pos_label;
836
+    #if EXTRUDERS == 1
837
+      pos_label = PSTR(MSG_MOVE_E);
838
+    #else
839
+      switch (e) {
840
+        case 0: pos_label = PSTR(MSG_MOVE_E MSG_MOVE_E1); break;
841
+        case 1: pos_label = PSTR(MSG_MOVE_E MSG_MOVE_E2); break;
842
+        #if EXTRUDERS > 2
843
+          case 2: pos_label = PSTR(MSG_MOVE_E MSG_MOVE_E3); break;
844
+          #if EXTRUDERS > 3
845
+            case 3: pos_label = PSTR(MSG_MOVE_E MSG_MOVE_E4); break;
846
+          #endif //EXTRUDERS > 3
847
+        #endif //EXTRUDERS > 2
848
+      }
849
+    #endif //EXTRUDERS > 1
850
+    lcd_implementation_drawedit(pos_label, ftostr31(current_position[E_AXIS]));
851
+  }
827 852
   if (LCD_CLICKED) lcd_goto_menu(lcd_move_menu_axis);
828 853
   #if EXTRUDERS > 1
829 854
     active_extruder = original_active_extruder;
@@ -831,6 +856,7 @@ static void lcd_move_e(
831 856
 }
832 857
 
833 858
 #if EXTRUDERS > 1
859
+  static void lcd_move_e0() { lcd_move_e(0); }
834 860
   static void lcd_move_e1() { lcd_move_e(1); }
835 861
   #if EXTRUDERS > 2
836 862
     static void lcd_move_e2() { lcd_move_e(2); }
@@ -853,13 +879,15 @@ static void lcd_move_menu_axis() {
853 879
   MENU_ITEM(submenu, MSG_MOVE_Y, lcd_move_y);
854 880
   if (move_menu_scale < 10.0) {
855 881
     MENU_ITEM(submenu, MSG_MOVE_Z, lcd_move_z);
856
-    MENU_ITEM(submenu, MSG_MOVE_E, lcd_move_e);
857
-    #if EXTRUDERS > 1
858
-      MENU_ITEM(submenu, MSG_MOVE_E1, lcd_move_e1);
882
+    #if EXTRUDERS == 1
883
+      MENU_ITEM(submenu, MSG_MOVE_E, lcd_move_e);
884
+    #else
885
+      MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E1, lcd_move_e0);
886
+      MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E2, lcd_move_e1);
859 887
       #if EXTRUDERS > 2
860
-        MENU_ITEM(submenu, MSG_MOVE_E2, lcd_move_e2);
888
+        MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E3, lcd_move_e2);
861 889
         #if EXTRUDERS > 3
862
-          MENU_ITEM(submenu, MSG_MOVE_E3, lcd_move_e3);
890
+          MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E4, lcd_move_e3);
863 891
         #endif
864 892
       #endif
865 893
     #endif // EXTRUDERS > 1
@@ -942,18 +970,18 @@ static void lcd_control_menu() {
942 970
     PID_PARAM(Kd, e) = scalePID_d(raw_Kd);
943 971
     updatePID();
944 972
   }
945
-  void copy_and_scalePID_i_E1() { copy_and_scalePID_i(0); }
946
-  void copy_and_scalePID_d_E1() { copy_and_scalePID_d(0); }
973
+  #define COPY_AND_SCALE(eindex) \
974
+    void copy_and_scalePID_i_E ## eindex() { copy_and_scalePID_i(eindex); } \
975
+    void copy_and_scalePID_d_E ## eindex() { copy_and_scalePID_d(eindex); }
976
+
977
+  COPY_AND_SCALE(0);
947 978
   #if ENABLED(PID_PARAMS_PER_EXTRUDER)
948 979
     #if EXTRUDERS > 1
949
-      void copy_and_scalePID_i_E2() { copy_and_scalePID_i(1); }
950
-      void copy_and_scalePID_d_E2() { copy_and_scalePID_d(1); }
980
+      COPY_AND_SCALE(1);
951 981
       #if EXTRUDERS > 2
952
-        void copy_and_scalePID_i_E3() { copy_and_scalePID_i(2); }
953
-        void copy_and_scalePID_d_E3() { copy_and_scalePID_d(2); }
982
+        COPY_AND_SCALE(2);
954 983
         #if EXTRUDERS > 3
955
-          void copy_and_scalePID_i_E4() { copy_and_scalePID_i(3); }
956
-          void copy_and_scalePID_d_E4() { copy_and_scalePID_d(3); }
984
+          COPY_AND_SCALE(3);
957 985
         #endif //EXTRUDERS > 3
958 986
       #endif //EXTRUDERS > 2
959 987
     #endif //EXTRUDERS > 1
@@ -975,12 +1003,17 @@ static void lcd_control_temperature_menu() {
975 1003
   MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
976 1004
 
977 1005
   //
978
-  // Nozzle, Nozzle 2, Nozzle 3, Nozzle 4
1006
+  // Nozzle
1007
+  // Nozzle 1, Nozzle 2, Nozzle 3, Nozzle 4
979 1008
   //
980
-  #if TEMP_SENSOR_0 != 0
981
-    MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
982
-  #endif
983
-  #if EXTRUDERS > 1
1009
+  #if EXTRUDERS == 1
1010
+    #if TEMP_SENSOR_0 != 0
1011
+      MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
1012
+    #endif
1013
+  #else //EXTRUDERS > 1
1014
+    #if TEMP_SENSOR_0 != 0
1015
+      MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_NOZZLE MSG_N1, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15);
1016
+    #endif
984 1017
     #if TEMP_SENSOR_1 != 0
985 1018
       MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_NOZZLE MSG_N2, &target_temperature[1], 0, HEATER_1_MAXTEMP - 15);
986 1019
     #endif
@@ -1020,59 +1053,42 @@ static void lcd_control_temperature_menu() {
1020 1053
 
1021 1054
   //
1022 1055
   // PID-P, PID-I, PID-D, PID-C
1056
+  // PID-P E1, PID-I E1, PID-D E1, PID-C E1
1057
+  // PID-P E2, PID-I E2, PID-D E2, PID-C E2
1058
+  // PID-P E3, PID-I E3, PID-D E3, PID-C E3
1059
+  // PID-P E4, PID-I E4, PID-D E4, PID-C E4
1023 1060
   //
1024 1061
   #if ENABLED(PIDTEMP)
1025
-    // set up temp variables - undo the default scaling
1026
-    raw_Ki = unscalePID_i(PID_PARAM(Ki,0));
1027
-    raw_Kd = unscalePID_d(PID_PARAM(Kd,0));
1028
-    MENU_ITEM_EDIT(float52, MSG_PID_P, &PID_PARAM(Kp,0), 1, 9990);
1029
-    // i is typically a small value so allows values below 1
1030
-    MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_I, &raw_Ki, 0.01, 9990, copy_and_scalePID_i_E1);
1031
-    MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_D, &raw_Kd, 1, 9990, copy_and_scalePID_d_E1);
1062
+
1063
+    #define _PID_MENU_ITEMS(ELABEL, eindex) \
1064
+      raw_Ki = unscalePID_i(PID_PARAM(Ki, eindex)); \
1065
+      raw_Kd = unscalePID_d(PID_PARAM(Kd, eindex)); \
1066
+      MENU_ITEM_EDIT(float52, MSG_PID_P ELABEL, &PID_PARAM(Kp, eindex), 1, 9990); \
1067
+      MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_I ELABEL, &raw_Ki, 0.01, 9990, copy_and_scalePID_i_E ## eindex); \
1068
+      MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_D ELABEL, &raw_Kd, 1, 9990, copy_and_scalePID_d_E ## eindex)
1069
+
1032 1070
     #if ENABLED(PID_ADD_EXTRUSION_RATE)
1033
-      MENU_ITEM_EDIT(float3, MSG_PID_C, &PID_PARAM(Kc,0), 1, 9990);
1034
-    #endif//PID_ADD_EXTRUSION_RATE
1035
-    #if ENABLED(PID_PARAMS_PER_EXTRUDER)
1036
-      #if EXTRUDERS > 1
1037
-        // set up temp variables - undo the default scaling
1038
-        raw_Ki = unscalePID_i(PID_PARAM(Ki,1));
1039
-        raw_Kd = unscalePID_d(PID_PARAM(Kd,1));
1040
-        MENU_ITEM_EDIT(float52, MSG_PID_P MSG_E2, &PID_PARAM(Kp,1), 1, 9990);
1041
-        // i is typically a small value so allows values below 1
1042
-        MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_I MSG_E2, &raw_Ki, 0.01, 9990, copy_and_scalePID_i_E2);
1043
-        MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_D MSG_E2, &raw_Kd, 1, 9990, copy_and_scalePID_d_E2);
1044
-        #if ENABLED(PID_ADD_EXTRUSION_RATE)
1045
-          MENU_ITEM_EDIT(float3, MSG_PID_C MSG_E2, &PID_PARAM(Kc,1), 1, 9990);
1046
-        #endif//PID_ADD_EXTRUSION_RATE
1071
+      #define PID_MENU_ITEMS(ELABEL, eindex) \
1072
+        _PID_MENU_ITEMS(ELABEL, eindex); \
1073
+        MENU_ITEM_EDIT(float3, MSG_PID_C ELABEL, &PID_PARAM(Kc, eindex), 1, 9990)
1074
+    #else
1075
+      #define PID_MENU_ITEMS(ELABEL, eindex) _PID_MENU_ITEMS(ELABEL, eindex)
1076
+    #endif
1047 1077
 
1048
-        #if EXTRUDERS > 2
1049
-          // set up temp variables - undo the default scaling
1050
-          raw_Ki = unscalePID_i(PID_PARAM(Ki,2));
1051
-          raw_Kd = unscalePID_d(PID_PARAM(Kd,2));
1052
-          MENU_ITEM_EDIT(float52, MSG_PID_P MSG_E3, &PID_PARAM(Kp,2), 1, 9990);
1053
-          // i is typically a small value so allows values below 1
1054
-          MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_I MSG_E3, &raw_Ki, 0.01, 9990, copy_and_scalePID_i_E3);
1055
-          MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_D MSG_E3, &raw_Kd, 1, 9990, copy_and_scalePID_d_E3);
1056
-          #if ENABLED(PID_ADD_EXTRUSION_RATE)
1057
-            MENU_ITEM_EDIT(float3, MSG_PID_C MSG_E3, &PID_PARAM(Kc,2), 1, 9990);
1058
-          #endif//PID_ADD_EXTRUSION_RATE
1078
+    #if ENABLED(PID_PARAMS_PER_EXTRUDER) && EXTRUDERS > 1
1079
+      PID_MENU_ITEMS(MSG_E1, 0);
1080
+      PID_MENU_ITEMS(MSG_E2, 1);
1081
+      #if EXTRUDERS > 2
1082
+        PID_MENU_ITEMS(MSG_E3, 2);
1083
+        #if EXTRUDERS > 3
1084
+          PID_MENU_ITEMS(MSG_E4, 3);
1085
+        #endif //EXTRUDERS > 3
1086
+      #endif //EXTRUDERS > 2
1087
+    #else //!PID_PARAMS_PER_EXTRUDER || EXTRUDERS == 1
1088
+      PID_MENU_ITEMS("", 0);
1089
+    #endif //!PID_PARAMS_PER_EXTRUDER || EXTRUDERS == 1
1059 1090
 
1060
-          #if EXTRUDERS > 3
1061
-            // set up temp variables - undo the default scaling
1062
-            raw_Ki = unscalePID_i(PID_PARAM(Ki,3));
1063
-            raw_Kd = unscalePID_d(PID_PARAM(Kd,3));
1064
-            MENU_ITEM_EDIT(float52, MSG_PID_P MSG_E4, &PID_PARAM(Kp,3), 1, 9990);
1065
-            // i is typically a small value so allows values below 1
1066
-            MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_I MSG_E4, &raw_Ki, 0.01, 9990, copy_and_scalePID_i_E4);
1067
-            MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_D MSG_E4, &raw_Kd, 1, 9990, copy_and_scalePID_d_E4);
1068
-            #if ENABLED(PID_ADD_EXTRUSION_RATE)
1069
-              MENU_ITEM_EDIT(float3, MSG_PID_C MSG_E4, &PID_PARAM(Kc,3), 1, 9990);
1070
-            #endif//PID_ADD_EXTRUSION_RATE
1071
-          #endif//EXTRUDERS > 3
1072
-        #endif//EXTRUDERS > 2
1073
-      #endif//EXTRUDERS > 1
1074
-    #endif //PID_PARAMS_PER_EXTRUDER
1075
-  #endif//PIDTEMP
1091
+  #endif //PIDTEMP
1076 1092
 
1077 1093
   //
1078 1094
   // Preheat PLA conf
@@ -1181,13 +1197,15 @@ static void lcd_control_volumetric_menu() {
1181 1197
   MENU_ITEM_EDIT_CALLBACK(bool, MSG_VOLUMETRIC_ENABLED, &volumetric_enabled, calculate_volumetric_multipliers);
1182 1198
 
1183 1199
   if (volumetric_enabled) {
1184
-    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_0, &filament_size[0], 1.5, 3.25, calculate_volumetric_multipliers);
1185
-    #if EXTRUDERS > 1
1186
-      MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_1, &filament_size[1], 1.5, 3.25, calculate_volumetric_multipliers);
1200
+    #if EXTRUDERS == 1
1201
+      MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM, &filament_size[0], 1.5, 3.25, calculate_volumetric_multipliers);
1202
+    #else //EXTRUDERS > 1
1203
+      MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E1, &filament_size[0], 1.5, 3.25, calculate_volumetric_multipliers);
1204
+      MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E2, &filament_size[1], 1.5, 3.25, calculate_volumetric_multipliers);
1187 1205
       #if EXTRUDERS > 2
1188
-        MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_2, &filament_size[2], 1.5, 3.25, calculate_volumetric_multipliers);
1206
+        MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E3, &filament_size[2], 1.5, 3.25, calculate_volumetric_multipliers);
1189 1207
         #if EXTRUDERS > 3
1190
-          MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_3, &filament_size[3], 1.5, 3.25, calculate_volumetric_multipliers);
1208
+          MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E4, &filament_size[3], 1.5, 3.25, calculate_volumetric_multipliers);
1191 1209
         #endif //EXTRUDERS > 3
1192 1210
       #endif //EXTRUDERS > 2
1193 1211
     #endif //EXTRUDERS > 1

Loading…
Cancel
Save