소스 검색

🎨 Apply HAS_MULTI_HOTEND conditional

Scott Lahteine 2 년 전
부모
커밋
aa2c6387e9
41개의 변경된 파일100개의 추가작업 그리고 106개의 파일을 삭제
  1. 7
    8
      Marlin/src/lcd/e3v2/marlinui/ui_status_480x272.cpp
  2. 4
    4
      Marlin/src/lcd/extui/dgus/DGUSScreenHandler.cpp
  3. 6
    6
      Marlin/src/lcd/extui/dgus/fysetc/DGUSDisplayDef.cpp
  4. 2
    2
      Marlin/src/lcd/extui/dgus/fysetc/DGUSScreenHandler.cpp
  5. 19
    25
      Marlin/src/lcd/extui/dgus/hiprecy/DGUSDisplayDef.cpp
  6. 3
    3
      Marlin/src/lcd/extui/dgus/hiprecy/DGUSScreenHandler.cpp
  7. 5
    5
      Marlin/src/lcd/extui/dgus/mks/DGUSDisplayDef.cpp
  8. 5
    5
      Marlin/src/lcd/extui/dgus/origin/DGUSDisplayDef.cpp
  9. 3
    3
      Marlin/src/lcd/extui/dgus/origin/DGUSScreenHandler.cpp
  10. 6
    6
      Marlin/src/lcd/extui/dgus_reloaded/DGUSRxHandler.cpp
  11. 4
    4
      Marlin/src/lcd/extui/dgus_reloaded/DGUSTxHandler.cpp
  12. 2
    2
      Marlin/src/lcd/extui/dgus_reloaded/config/DGUS_Addr.h
  13. 2
    2
      Marlin/src/lcd/extui/dgus_reloaded/definition/DGUS_VPList.cpp
  14. 4
    3
      Marlin/src/lcd/menu/menu_temperature.cpp
  15. 2
    2
      Marlin/src/lcd/tft/ui_common.h
  16. 1
    1
      Marlin/src/pins/esp32/pins_E4D.h
  17. 1
    1
      Marlin/src/pins/esp32/pins_FYSETC_E4.h
  18. 1
    1
      Marlin/src/pins/esp32/pins_MRR_ESPA.h
  19. 1
    1
      Marlin/src/pins/esp32/pins_MRR_ESPE.h
  20. 1
    1
      Marlin/src/pins/ramps/pins_K8600.h
  21. 1
    1
      Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h
  22. 1
    1
      Marlin/src/pins/ramps/pins_RAMPS_ENDER_4.h
  23. 1
    1
      Marlin/src/pins/stm32f1/pins_CCROBOT_MEEB_3DP.h
  24. 1
    1
      Marlin/src/pins/stm32f1/pins_CREALITY_V4.h
  25. 1
    1
      Marlin/src/pins/stm32f1/pins_CREALITY_V4210.h
  26. 1
    1
      Marlin/src/pins/stm32f1/pins_CREALITY_V452.h
  27. 1
    1
      Marlin/src/pins/stm32f1/pins_CREALITY_V453.h
  28. 1
    1
      Marlin/src/pins/stm32f1/pins_FLSUN_HISPEED.h
  29. 1
    1
      Marlin/src/pins/stm32f1/pins_JGAURORA_A5S_A1.h
  30. 1
    1
      Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h
  31. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3.h
  32. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3D.h
  33. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3D_V1_1.h
  34. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3P.h
  35. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_V1_1.h
  36. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE.h
  37. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_MINI.h
  38. 1
    1
      Marlin/src/pins/stm32f4/pins_ANET_ET4.h
  39. 1
    1
      Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
  40. 1
    1
      Marlin/src/pins/stm32f4/pins_LERDGE_X.h
  41. 1
    1
      Marlin/src/pins/stm32f7/pins_REMRAM_V1.h

+ 7
- 8
Marlin/src/lcd/e3v2/marlinui/ui_status_480x272.cpp 파일 보기

@@ -132,20 +132,19 @@ FORCE_INLINE void _draw_fan_status(const uint16_t x, const uint16_t y) {
132 132
   }
133 133
 }
134 134
 
135
-#if HOTENDS > 2
136
-  #define HOTEND_STATS 3
137
-#elif HOTENDS > 1
138
-  #define HOTEND_STATS 2
139
-#elif HAS_HOTEND
140
-  #define HOTEND_STATS 1
141
-#endif
142
-
143 135
 /**
144 136
  * Draw a single heater icon with current and target temperature, at the given XY
145 137
  */
146 138
 FORCE_INLINE void _draw_heater_status(const heater_id_t heater, const uint16_t x, const uint16_t y) {
147 139
 
148 140
   #if HAS_HOTEND
141
+    #if HOTENDS > 2
142
+      #define HOTEND_STATS 3
143
+    #elif HOTENDS > 1
144
+      #define HOTEND_STATS 2
145
+    #elif HAS_HOTEND
146
+      #define HOTEND_STATS 1
147
+    #endif
149 148
     static celsius_t old_temp[HOTEND_STATS] = ARRAY_N_1(HOTEND_STATS, 500),
150 149
                      old_target[HOTEND_STATS] = ARRAY_N_1(HOTEND_STATS, 500);
151 150
     static bool old_on[HOTEND_STATS] = ARRAY_N_1(HOTEND_STATS, false);

+ 4
- 4
Marlin/src/lcd/extui/dgus/DGUSScreenHandler.cpp 파일 보기

@@ -185,7 +185,7 @@ void DGUSScreenHandler::DGUSLCD_SendStringToDisplayPGM(DGUS_VP_Variable &var) {
185 185
         case VP_E0_PID_I: valuesend = unscalePID_i(value); break;
186 186
         case VP_E0_PID_D: valuesend = unscalePID_d(value); break;
187 187
       #endif
188
-      #if HOTENDS >= 2
188
+      #if HAS_MULTI_HOTEND
189 189
         case VP_E1_PID_P: valuesend = value; break;
190 190
         case VP_E1_PID_I: valuesend = unscalePID_i(value); break;
191 191
         case VP_E1_PID_D: valuesend = unscalePID_d(value); break;
@@ -400,7 +400,7 @@ void DGUSScreenHandler::HandleTemperatureChanged(DGUS_VP_Variable &var, void *va
400 400
         acceptedvalue = thermalManager.degTargetHotend(0);
401 401
         break;
402 402
     #endif
403
-    #if HOTENDS >= 2
403
+    #if HAS_MULTI_HOTEND
404 404
       case VP_T_E1_Set:
405 405
         NOMORE(newvalue, HEATER_1_MAXTEMP);
406 406
         thermalManager.setTargetHotend(newvalue, 1);
@@ -551,7 +551,7 @@ void DGUSScreenHandler::HandleStepPerMMExtruderChanged(DGUS_VP_Variable &var, vo
551 551
               sprintf_P(buf, PSTR("M303 E%d C5 S210 U1"), ExtUI::extruder_t::E0);
552 552
               break;
553 553
           #endif
554
-          #if HOTENDS >= 2
554
+          #if HAS_MULTI_HOTEND
555 555
             case VP_PID_AUTOTUNE_E1:
556 556
               sprintf_P(buf, PSTR("M303 E%d C5 S210 U1"), ExtUI::extruder_t::E1);
557 557
               break;
@@ -598,7 +598,7 @@ void DGUSScreenHandler::HandleHeaterControl(DGUS_VP_Variable &var, void *val_ptr
598 598
   switch (var.VP) {
599 599
     #if HAS_HOTEND
600 600
       case VP_E0_CONTROL:
601
-      #if HOTENDS >= 2
601
+      #if HAS_MULTI_HOTEND
602 602
         case VP_E1_CONTROL:
603 603
         #if HOTENDS >= 3
604 604
           case VP_E2_CONTROL:

+ 6
- 6
Marlin/src/lcd/extui/dgus/fysetc/DGUSDisplayDef.cpp 파일 보기

@@ -51,7 +51,7 @@ const uint16_t VPList_Main[] PROGMEM = {
51 51
   #if HAS_HOTEND
52 52
     VP_T_E0_Is, VP_T_E0_Set, VP_E0_STATUS,
53 53
   #endif
54
-  #if HOTENDS >= 2
54
+  #if HAS_MULTI_HOTEND
55 55
     VP_T_E1_Is, VP_T_E1_Set,
56 56
   #endif
57 57
   #if HAS_HEATED_BED
@@ -73,7 +73,7 @@ const uint16_t VPList_Temp[] PROGMEM = {
73 73
   #if HAS_HOTEND
74 74
     VP_T_E0_Is, VP_T_E0_Set,
75 75
   #endif
76
-  #if HOTENDS >= 2
76
+  #if HAS_MULTI_HOTEND
77 77
     VP_T_E1_Is, VP_T_E1_Set,
78 78
   #endif
79 79
   #if HAS_HEATED_BED
@@ -87,7 +87,7 @@ const uint16_t VPList_Status[] PROGMEM = {
87 87
   #if HAS_HOTEND
88 88
     VP_T_E0_Is, VP_T_E0_Set,
89 89
   #endif
90
-  #if HOTENDS >= 2
90
+  #if HAS_MULTI_HOTEND
91 91
     VP_T_E1_Is, VP_T_E1_Set,
92 92
   #endif
93 93
   #if HAS_HEATED_BED
@@ -120,7 +120,7 @@ const uint16_t VPList_Preheat[] PROGMEM = {
120 120
   #if HAS_HOTEND
121 121
     VP_T_E0_Is, VP_T_E0_Set,
122 122
   #endif
123
-  #if HOTENDS >= 2
123
+  #if HAS_MULTI_HOTEND
124 124
     VP_T_E1_Is, VP_T_E1_Set,
125 125
   #endif
126 126
   #if HAS_HEATED_BED
@@ -187,7 +187,7 @@ const uint16_t VPList_SD_PrintManipulation[] PROGMEM = {
187 187
   #if HAS_HOTEND
188 188
     VP_T_E0_Is, VP_T_E0_Set,
189 189
   #endif
190
-  #if HOTENDS >= 2
190
+  #if HAS_MULTI_HOTEND
191 191
     VP_T_E1_Is, VP_T_E1_Set,
192 192
   #endif
193 193
   #if HAS_HEATED_BED
@@ -379,7 +379,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
379 379
       VPHELPER(VP_E0_FILAMENT_LOAD_UNLOAD, nullptr, ScreenHandler.HandleFilamentOption, ScreenHandler.HandleFilamentLoadUnload),
380 380
     #endif
381 381
   #endif
382
-  #if HOTENDS >= 2
382
+  #if HAS_MULTI_HOTEND
383 383
     VPHELPER(VP_T_E1_Is, &thermalManager.temp_hotend[1].celsius, nullptr, ScreenHandler.DGUSLCD_SendFloatAsLongValueToDisplay<0>),
384 384
     VPHELPER(VP_T_E1_Set, &thermalManager.temp_hotend[1].target, ScreenHandler.HandleTemperatureChanged, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
385 385
     VPHELPER(VP_Flowrate_E1, &planner.flow_percentage[ExtUI::extruder_t::E1], ScreenHandler.HandleFlowRateChanged, ScreenHandler.DGUSLCD_SendWordValueToDisplay),  // ERROR: Flow is per-extruder, not per-hotend

+ 2
- 2
Marlin/src/lcd/extui/dgus/fysetc/DGUSScreenHandler.cpp 파일 보기

@@ -256,7 +256,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
256 256
           case VP_E0_PID_I: newvalue = scalePID_i(value); break;
257 257
           case VP_E0_PID_D: newvalue = scalePID_d(value); break;
258 258
         #endif
259
-        #if HOTENDS >= 2
259
+        #if HAS_MULTI_HOTEND
260 260
           case VP_E1_PID_P: newvalue = value; break;
261 261
           case VP_E1_PID_I: newvalue = scalePID_i(value); break;
262 262
           case VP_E1_PID_D: newvalue = scalePID_d(value); break;
@@ -334,7 +334,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
334 334
       #if HAS_HOTEND
335 335
         thermalManager.setTargetHotend(e_temp, ExtUI::extruder_t::E0);
336 336
       #endif
337
-      #if HOTENDS >= 2
337
+      #if HAS_MULTI_HOTEND
338 338
         thermalManager.setTargetHotend(e_temp, ExtUI::extruder_t::E1);
339 339
       #endif
340 340
       GotoScreen(DGUSLCD_SCREEN_UTILITY);

+ 19
- 25
Marlin/src/lcd/extui/dgus/hiprecy/DGUSDisplayDef.cpp 파일 보기

@@ -50,7 +50,7 @@ const uint16_t VPList_Main[] PROGMEM = {
50 50
   // VP_M117, for completeness, but it cannot be auto-uploaded.
51 51
   #if HAS_HOTEND
52 52
     VP_T_E0_Is, VP_T_E0_Set, VP_E0_STATUS,
53
-    #if HOTENDS >= 2
53
+    #if HAS_MULTI_HOTEND
54 54
       VP_T_E1_Is, VP_T_E1_Set,
55 55
     #endif
56 56
   #endif
@@ -72,7 +72,7 @@ const uint16_t VPList_Main[] PROGMEM = {
72 72
 const uint16_t VPList_Temp[] PROGMEM = {
73 73
   #if HAS_HOTEND
74 74
     VP_T_E0_Is, VP_T_E0_Set,
75
-    #if HOTENDS >= 2
75
+    #if HAS_MULTI_HOTEND
76 76
       VP_T_E1_Is, VP_T_E1_Set,
77 77
     #endif
78 78
   #endif
@@ -86,7 +86,7 @@ const uint16_t VPList_Status[] PROGMEM = {
86 86
   // VP_M117, for completeness, but it cannot be auto-uploaded
87 87
   #if HAS_HOTEND
88 88
     VP_T_E0_Is, VP_T_E0_Set,
89
-    #if HOTENDS >= 2
89
+    #if HAS_MULTI_HOTEND
90 90
       VP_T_E1_Is, VP_T_E1_Set,
91 91
     #endif
92 92
   #endif
@@ -107,7 +107,7 @@ const uint16_t VPList_Status2[] PROGMEM = {
107 107
   // VP_M117, for completeness, but it cannot be auto-uploaded
108 108
   #if HAS_HOTEND
109 109
     VP_Flowrate_E0,
110
-    #if HOTENDS >= 2
110
+    #if HAS_MULTI_HOTEND
111 111
       VP_Flowrate_E1,
112 112
     #endif
113 113
   #endif
@@ -119,7 +119,7 @@ const uint16_t VPList_Status2[] PROGMEM = {
119 119
 const uint16_t VPList_Preheat[] PROGMEM = {
120 120
   #if HAS_HOTEND
121 121
     VP_T_E0_Is, VP_T_E0_Set,
122
-    #if HOTENDS >= 2
122
+    #if HAS_MULTI_HOTEND
123 123
       VP_T_E1_Is, VP_T_E1_Set,
124 124
     #endif
125 125
   #endif
@@ -137,7 +137,7 @@ const uint16_t VPList_ManualMove[] PROGMEM = {
137 137
 const uint16_t VPList_ManualExtrude[] PROGMEM = {
138 138
   #if HAS_HOTEND
139 139
     VP_T_E0_Is, VP_T_E0_Set,
140
-    #if HOTENDS >= 2
140
+    #if HAS_MULTI_HOTEND
141 141
       VP_T_E1_Is, VP_T_E1_Set,
142 142
     #endif
143 143
   #endif
@@ -159,7 +159,7 @@ const uint16_t VPList_Filament_heating[] PROGMEM = {
159 159
   #if HAS_HOTEND
160 160
     VP_T_E0_Is, VP_T_E0_Set,
161 161
     VP_E0_FILAMENT_LOAD_UNLOAD,
162
-    #if HOTENDS >= 2
162
+    #if HAS_MULTI_HOTEND
163 163
       VP_T_E1_Is, VP_T_E1_Set,
164 164
     #endif
165 165
   #endif
@@ -169,7 +169,7 @@ const uint16_t VPList_Filament_heating[] PROGMEM = {
169 169
 const uint16_t VPList_Filament_load_unload[] PROGMEM = {
170 170
   #if HAS_HOTEND
171 171
     VP_E0_FILAMENT_LOAD_UNLOAD,
172
-    #if HOTENDS >= 2
172
+    #if HAS_MULTI_HOTEND
173 173
       VP_E1_FILAMENT_LOAD_UNLOAD,
174 174
     #endif
175 175
   #endif
@@ -185,7 +185,7 @@ const uint16_t VPList_SD_PrintManipulation[] PROGMEM = {
185 185
   VP_PrintProgress_Percentage, VP_PrintTime,
186 186
   #if HAS_HOTEND
187 187
     VP_T_E0_Is, VP_T_E0_Set,
188
-    #if HOTENDS >= 2
188
+    #if HAS_MULTI_HOTEND
189 189
       VP_T_E1_Is, VP_T_E1_Set,
190 190
     #endif
191 191
   #endif
@@ -205,7 +205,7 @@ const uint16_t VPList_SD_PrintManipulation[] PROGMEM = {
205 205
 const uint16_t VPList_SDPrintTune[] PROGMEM = {
206 206
   #if HAS_HOTEND
207 207
     VP_T_E0_Is, VP_T_E0_Set,
208
-    #if HOTENDS >= 2
208
+    #if HAS_MULTI_HOTEND
209 209
       VP_T_E1_Is, VP_T_E1_Set,
210 210
     #endif
211 211
   #endif
@@ -222,23 +222,17 @@ const uint16_t VPList_SDPrintTune[] PROGMEM = {
222 222
 };
223 223
 
224 224
 const uint16_t VPList_StepPerMM[] PROGMEM = {
225
-  VP_X_STEP_PER_MM,
226
-  VP_Y_STEP_PER_MM,
227
-  VP_Z_STEP_PER_MM,
228
-  #if HAS_HOTEND
229
-    VP_E0_STEP_PER_MM,
230
-    #if HOTENDS >= 2
231
-      VP_E1_STEP_PER_MM,
232
-    #endif
233
-  #endif
234
-  0x0000
225
+  VP_X_STEP_PER_MM
226
+  , VP_Y_STEP_PER_MM
227
+  , VP_Z_STEP_PER_MM
228
+  OPTARG(HAS_HOTEND,       VP_E0_STEP_PER_MM)
229
+  OPTARG(HAS_MULTI_HOTEND, VP_E1_STEP_PER_MM)
230
+  , 0x0000
235 231
 };
236 232
 
237 233
 const uint16_t VPList_PIDE0[] PROGMEM = {
238 234
   #if ENABLED(PIDTEMP)
239
-    VP_E0_PID_P,
240
-    VP_E0_PID_I,
241
-    VP_E0_PID_D,
235
+    VP_E0_PID_P, VP_E0_PID_I, VP_E0_PID_D,
242 236
   #endif
243 237
   0x0000
244 238
 };
@@ -382,7 +376,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
382 376
       VPHELPER(VP_PID_AUTOTUNE_E0, nullptr, ScreenHandler.HandlePIDAutotune, nullptr),
383 377
     #endif
384 378
   #endif
385
-  #if HOTENDS >= 2
379
+  #if HAS_MULTI_HOTEND
386 380
     VPHELPER(VP_T_E1_Is, &thermalManager.temp_hotend[1].celsius, nullptr, ScreenHandler.DGUSLCD_SendFloatAsLongValueToDisplay<0>),
387 381
     VPHELPER(VP_T_E1_Set, &thermalManager.temp_hotend[1].target, ScreenHandler.HandleTemperatureChanged, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
388 382
     VPHELPER(VP_Flowrate_E1, nullptr, ScreenHandler.HandleFlowRateChanged, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
@@ -435,7 +429,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
435 429
   VPHELPER(VP_Z_STEP_PER_MM, &planner.settings.axis_steps_per_mm[Z_AXIS], ScreenHandler.HandleStepPerMMChanged, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<1>),
436 430
   #if HAS_HOTEND
437 431
     VPHELPER(VP_E0_STEP_PER_MM, &planner.settings.axis_steps_per_mm[E_AXIS_N(0)], ScreenHandler.HandleStepPerMMExtruderChanged, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<1>),
438
-    #if HOTENDS >= 2
432
+    #if HAS_MULTI_HOTEND
439 433
       VPHELPER(VP_E1_STEP_PER_MM, &planner.settings.axis_steps_per_mm[E_AXIS_N(1)], ScreenHandler.HandleStepPerMMExtruderChanged, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<1>),
440 434
     #endif
441 435
   #endif

+ 3
- 3
Marlin/src/lcd/extui/dgus/hiprecy/DGUSScreenHandler.cpp 파일 보기

@@ -256,7 +256,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
256 256
           case VP_E0_PID_I: newvalue = scalePID_i(value); break;
257 257
           case VP_E0_PID_D: newvalue = scalePID_d(value); break;
258 258
         #endif
259
-        #if HOTENDS >= 2
259
+        #if HAS_MULTI_HOTEND
260 260
           case VP_E1_PID_P: newvalue = value; break;
261 261
           case VP_E1_PID_I: newvalue = scalePID_i(value); break;
262 262
           case VP_E1_PID_D: newvalue = scalePID_d(value); break;
@@ -333,7 +333,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
333 333
     if (filament_data.action == 0) { // Go back to utility screen
334 334
       #if HAS_HOTEND
335 335
         thermalManager.setTargetHotend(e_temp, ExtUI::extruder_t::E0);
336
-        #if HOTENDS >= 2
336
+        #if HAS_MULTI_HOTEND
337 337
           thermalManager.setTargetHotend(e_temp, ExtUI::extruder_t::E1);
338 338
         #endif
339 339
       #endif
@@ -348,7 +348,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
348 348
               thermalManager.setTargetHotend(e_temp, filament_data.extruder);
349 349
               break;
350 350
           #endif
351
-          #if HOTENDS >= 2
351
+          #if HAS_MULTI_HOTEND
352 352
             case VP_E1_FILAMENT_LOAD_UNLOAD:
353 353
               filament_data.extruder = ExtUI::extruder_t::E1;
354 354
               thermalManager.setTargetHotend(e_temp, filament_data.extruder);

+ 5
- 5
Marlin/src/lcd/extui/dgus/mks/DGUSDisplayDef.cpp 파일 보기

@@ -122,7 +122,7 @@ const uint16_t VPList_Main[] PROGMEM = {
122 122
   // VP_M117, for completeness, but it cannot be auto-uploaded.
123 123
   #if HAS_HOTEND
124 124
     MKSLIST_E_ITEM(0) VP_E0_STATUS,
125
-    #if HOTENDS >= 2
125
+    #if HAS_MULTI_HOTEND
126 126
       MKSLIST_E_ITEM(1) VP_E1_STATUS,
127 127
     #endif
128 128
   #endif
@@ -567,7 +567,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
567 567
     #endif
568 568
   #endif
569 569
 
570
-  #if HOTENDS >= 2
570
+  #if HAS_MULTI_HOTEND
571 571
     VPHELPER(VP_T_E1_Is, &thermalManager.temp_hotend[1].celsius, nullptr, ScreenHandler.DGUSLCD_SendFloatAsLongValueToDisplay<0>),
572 572
     VPHELPER(VP_T_E1_Set, &thermalManager.temp_hotend[1].target, ScreenHandler.HandleTemperatureChanged, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
573 573
     VPHELPER(VP_Flowrate_E1, &planner.flow_percentage[ExtUI::extruder_t::E1], ScreenHandler.HandleFlowRateChanged, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
@@ -656,7 +656,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
656 656
 
657 657
   #if HAS_HOTEND
658 658
     VPHELPER(VP_E0_MAX_SPEED, &planner.settings.max_feedrate_mm_s[E_AXIS_N(0)], ScreenHandler.HandleExtruderMaxSpeedChange_MKS, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<0>),
659
-    #if HOTENDS >= 2
659
+    #if HAS_MULTI_HOTEND
660 660
       VPHELPER(VP_E1_MAX_SPEED, &planner.settings.max_feedrate_mm_s[E_AXIS_N(1)], ScreenHandler.HandleExtruderMaxSpeedChange_MKS, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<0>),
661 661
     #endif
662 662
   #endif
@@ -667,7 +667,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
667 667
 
668 668
   #if HAS_HOTEND
669 669
     VPHELPER(VP_E0_ACC_MAX_SPEED, (uint16_t *)&planner.settings.max_acceleration_mm_per_s2[E_AXIS_N(0)], ScreenHandler.HandleExtruderAccChange_MKS, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
670
-    #if HOTENDS >= 2
670
+    #if HAS_MULTI_HOTEND
671 671
       VPHELPER(VP_E1_ACC_MAX_SPEED, (uint16_t *)&planner.settings.max_acceleration_mm_per_s2[E_AXIS_N(1)], ScreenHandler.HandleExtruderAccChange_MKS, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
672 672
     #endif
673 673
   #endif
@@ -744,7 +744,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
744 744
 
745 745
   #if HAS_HOTEND
746 746
     VPHELPER(VP_E0_STEP_PER_MM, &planner.settings.axis_steps_per_mm[E_AXIS_N(0)], ScreenHandler.HandleStepPerMMExtruderChanged_MKS, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<0>),
747
-    #if HOTENDS >= 2
747
+    #if HAS_MULTI_HOTEND
748 748
       VPHELPER(VP_E1_STEP_PER_MM, &planner.settings.axis_steps_per_mm[E_AXIS_N(1)], ScreenHandler.HandleStepPerMMExtruderChanged_MKS, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<0>),
749 749
     #endif
750 750
   #endif

+ 5
- 5
Marlin/src/lcd/extui/dgus/origin/DGUSDisplayDef.cpp 파일 보기

@@ -57,7 +57,7 @@ const uint16_t VPList_Main[] PROGMEM = {
57 57
 const uint16_t VPList_Temp[] PROGMEM = {
58 58
   #if HAS_HOTEND
59 59
     VP_T_E0_Is, VP_T_E0_Set,
60
-    #if HOTENDS >= 2
60
+    #if HAS_MULTI_HOTEND
61 61
       VP_T_E1_Is, VP_T_E1_Set,
62 62
     #endif
63 63
   #endif
@@ -71,7 +71,7 @@ const uint16_t VPList_Status[] PROGMEM = {
71 71
   // VP_M117, for completeness, but it cannot be auto-uploaded
72 72
   #if HAS_HOTEND
73 73
     VP_T_E0_Is, VP_T_E0_Set,
74
-    #if HOTENDS >= 2
74
+    #if HAS_MULTI_HOTEND
75 75
       VP_T_E1_Is, VP_T_E1_Set,
76 76
     #endif
77 77
   #endif
@@ -92,7 +92,7 @@ const uint16_t VPList_Status2[] PROGMEM = {
92 92
   // VP_M117, for completeness, but it cannot be auto-uploaded
93 93
   #if HAS_HOTEND
94 94
     VP_Flowrate_E0,
95
-    #if HOTENDS >= 2
95
+    #if HAS_MULTI_HOTEND
96 96
       VP_Flowrate_E1,
97 97
     #endif
98 98
   #endif
@@ -182,7 +182,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
182 182
       VPHELPER(VP_E0_FILAMENT_LOAD_UNLOAD, nullptr, ScreenHandler.HandleFilamentOption, ScreenHandler.HandleFilamentLoadUnload),
183 183
     #endif
184 184
   #endif
185
-  #if HOTENDS >= 2
185
+  #if HAS_MULTI_HOTEND
186 186
     VPHELPER(VP_T_E1_Is, &thermalManager.temp_hotend[1].celsius, nullptr, ScreenHandler.DGUSLCD_SendFloatAsLongValueToDisplay<0>),
187 187
     VPHELPER(VP_T_E1_Set, &thermalManager.temp_hotend[1].target, ScreenHandler.HandleTemperatureChanged, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
188 188
     VPHELPER(VP_Flowrate_E1, nullptr, ScreenHandler.HandleFlowRateChanged, ScreenHandler.DGUSLCD_SendWordValueToDisplay),
@@ -237,7 +237,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
237 237
   VPHELPER(VP_Z_STEP_PER_MM, &planner.settings.axis_steps_per_mm[Z_AXIS], ScreenHandler.HandleStepPerMMChanged, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<1>),
238 238
   #if HAS_HOTEND
239 239
     VPHELPER(VP_E0_STEP_PER_MM, &planner.settings.axis_steps_per_mm[E_AXIS_N(0)], ScreenHandler.HandleStepPerMMExtruderChanged, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<1>),
240
-    #if HOTENDS >= 2
240
+    #if HAS_MULTI_HOTEND
241 241
       VPHELPER(VP_E1_STEP_PER_MM, &planner.settings.axis_steps_per_mm[E_AXIS_N(1)], ScreenHandler.HandleStepPerMMExtruderChanged, ScreenHandler.DGUSLCD_SendFloatAsIntValueToDisplay<1>),
242 242
     #endif
243 243
   #endif

+ 3
- 3
Marlin/src/lcd/extui/dgus/origin/DGUSScreenHandler.cpp 파일 보기

@@ -256,7 +256,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
256 256
           case VP_E0_PID_I: newvalue = scalePID_i(value); break;
257 257
           case VP_E0_PID_D: newvalue = scalePID_d(value); break;
258 258
         #endif
259
-        #if HOTENDS >= 2
259
+        #if HAS_MULTI_HOTEND
260 260
           case VP_E1_PID_P: newvalue = value; break;
261 261
           case VP_E1_PID_I: newvalue = scalePID_i(value); break;
262 262
           case VP_E1_PID_D: newvalue = scalePID_d(value); break;
@@ -333,7 +333,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
333 333
     if (filament_data.action == 0) { // Go back to utility screen
334 334
       #if HAS_HOTEND
335 335
         thermalManager.setTargetHotend(e_temp, ExtUI::extruder_t::E0);
336
-        #if HOTENDS >= 2
336
+        #if HAS_MULTI_HOTEND
337 337
           thermalManager.setTargetHotend(e_temp, ExtUI::extruder_t::E1);
338 338
         #endif
339 339
       #endif
@@ -348,7 +348,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
348 348
               thermalManager.setTargetHotend(e_temp, filament_data.extruder);
349 349
               break;
350 350
           #endif
351
-          #if HOTENDS >= 2
351
+          #if HAS_MULTI_HOTEND
352 352
             case VP_E1_FILAMENT_LOAD_UNLOAD:
353 353
               filament_data.extruder = ExtUI::extruder_t::E1;
354 354
               thermalManager.setTargetHotend(e_temp, filament_data.extruder);

+ 6
- 6
Marlin/src/lcd/extui/dgus_reloaded/DGUSRxHandler.cpp 파일 보기

@@ -327,7 +327,7 @@ void DGUSRxHandler::TempTarget(DGUS_VP &vp, void *data_ptr) {
327 327
     case DGUS_Addr::TEMP_SetTarget_H0:
328 328
       ExtUI::setTargetTemp_celsius(temp, ExtUI::H0);
329 329
       break;
330
-    #if HOTENDS > 1
330
+    #if HAS_MULTI_HOTEND
331 331
       case DGUS_Addr::TEMP_SetTarget_H1:
332 332
         ExtUI::setTargetTemp_celsius(temp, ExtUI::H1);
333 333
         break;
@@ -347,7 +347,7 @@ void DGUSRxHandler::TempCool(DGUS_VP &vp, void *data_ptr) {
347 347
     case DGUS_Data::Heater::ALL:
348 348
       ExtUI::setTargetTemp_celsius(0, ExtUI::BED);
349 349
       ExtUI::setTargetTemp_celsius(0, ExtUI::H0);
350
-      #if HOTENDS > 1
350
+      #if HAS_MULTI_HOTEND
351 351
         ExtUI::setTargetTemp_celsius(0, ExtUI::H1);
352 352
       #endif
353 353
       break;
@@ -357,7 +357,7 @@ void DGUSRxHandler::TempCool(DGUS_VP &vp, void *data_ptr) {
357 357
     case DGUS_Data::Heater::H0:
358 358
       ExtUI::setTargetTemp_celsius(0, ExtUI::H0);
359 359
       break;
360
-    #if HOTENDS > 1
360
+    #if HAS_MULTI_HOTEND
361 361
       case DGUS_Data::Heater::H1:
362 362
         ExtUI::setTargetTemp_celsius(0, ExtUI::H1);
363 363
         break;
@@ -827,7 +827,7 @@ void DGUSRxHandler::PIDSelect(DGUS_VP &vp, void *data_ptr) {
827 827
       dgus_screen_handler.pid_heater = heater;
828 828
       break;
829 829
     case DGUS_Data::Heater::H0:
830
-    #if HOTENDS > 1
830
+    #if HAS_MULTI_HOTEND
831 831
       case DGUS_Data::Heater::H1:
832 832
     #endif
833 833
       dgus_screen_handler.pid_temp = DGUS_PLA_TEMP_HOTEND;
@@ -858,7 +858,7 @@ void DGUSRxHandler::PIDSetTemp(DGUS_VP &vp, void *data_ptr) {
858 858
     case DGUS_Data::Heater::H0:
859 859
       temp = constrain(temp, HEATER_0_MINTEMP, (HEATER_0_MAXTEMP - HOTEND_OVERSHOOT));
860 860
       break;
861
-    #if HOTENDS > 1
861
+    #if HAS_MULTI_HOTEND
862 862
       case DGUS_Data::Heater::H1:
863 863
         temp = constrain(temp, HEATER_1_MINTEMP, (HEATER_1_MAXTEMP - HOTEND_OVERSHOOT));
864 864
         break;
@@ -900,7 +900,7 @@ void DGUSRxHandler::PIDRun(DGUS_VP &vp, void *data_ptr) {
900 900
         dgus_screen_handler.SetStatusMessage(F("PID disabled"));
901 901
         return;
902 902
       #endif
903
-    #if HOTENDS > 1
903
+    #if HAS_MULTI_HOTEND
904 904
       case DGUS_Data::Heater::H1:
905 905
         #if ENABLED(PIDTEMP)
906 906
           heater = H_E1;

+ 4
- 4
Marlin/src/lcd/extui/dgus_reloaded/DGUSTxHandler.cpp 파일 보기

@@ -275,7 +275,7 @@ void DGUSTxHandler::TempMax(DGUS_VP &vp) {
275 275
     case DGUS_Addr::TEMP_Max_H0:
276 276
       temp = HEATER_0_MAXTEMP - HOTEND_OVERSHOOT;
277 277
       break;
278
-    #if HOTENDS > 1
278
+    #if HAS_MULTI_HOTEND
279 279
       case DGUS_Addr::TEMP_Max_H1:
280 280
         temp = HEATER_1_MAXTEMP - HOTEND_OVERSHOOT;
281 281
         break;
@@ -428,7 +428,7 @@ void DGUSTxHandler::PIDKp(DGUS_VP &vp) {
428 428
       case DGUS_Data::Heater::H0:
429 429
         value = ExtUI::getPIDValues_Kp(ExtUI::E0);
430 430
         break;
431
-      #if HOTENDS > 1
431
+      #if HAS_MULTI_HOTEND
432 432
         case DGUS_Data::Heater::H1:
433 433
           value = ExtUI::getPIDValues_Kp(ExtUI::E1);
434 434
           break;
@@ -454,7 +454,7 @@ void DGUSTxHandler::PIDKi(DGUS_VP &vp) {
454 454
       case DGUS_Data::Heater::H0:
455 455
         value = ExtUI::getPIDValues_Ki(ExtUI::E0);
456 456
         break;
457
-      #if HOTENDS > 1
457
+      #if HAS_MULTI_HOTEND
458 458
         case DGUS_Data::Heater::H1:
459 459
           value = ExtUI::getPIDValues_Ki(ExtUI::E1);
460 460
           break;
@@ -480,7 +480,7 @@ void DGUSTxHandler::PIDKd(DGUS_VP &vp) {
480 480
       case DGUS_Data::Heater::H0:
481 481
         value = ExtUI::getPIDValues_Kd(ExtUI::E0);
482 482
         break;
483
-      #if HOTENDS > 1
483
+      #if HAS_MULTI_HOTEND
484 484
         case DGUS_Data::Heater::H1:
485 485
           value = ExtUI::getPIDValues_Kd(ExtUI::E1);
486 486
           break;

+ 2
- 2
Marlin/src/lcd/extui/dgus_reloaded/config/DGUS_Addr.h 파일 보기

@@ -64,7 +64,7 @@ enum class DGUS_Addr : uint16_t {
64 64
   TEMP_Preset               = 0x2010, // Popup / Data: DGUS_Data::TempPreset
65 65
   TEMP_SetTarget_Bed        = 0x2011, // Type: Integer (16 bits signed)
66 66
   TEMP_SetTarget_H0         = 0x2012, // Type: Integer (16 bits signed)
67
-  #if HOTENDS > 1
67
+  #if HAS_MULTI_HOTEND
68 68
     TEMP_SetTarget_H1       = 0x2013, // Type: Integer (16 bits signed)
69 69
   #endif
70 70
   TEMP_Cool                 = 0x2014, // Data: DGUS_Data::Heater
@@ -123,7 +123,7 @@ enum class DGUS_Addr : uint16_t {
123 123
   TEMP_Current_H0           = 0x30FF, // Type: Integer (16 bits signed)
124 124
   TEMP_Target_H0            = 0x3100, // Type: Integer (16 bits signed)
125 125
   TEMP_Max_H0               = 0x3101, // Type: Integer (16 bits unsigned)
126
-  #if HOTENDS > 1
126
+  #if HAS_MULTI_HOTEND
127 127
     TEMP_Current_H1         = 0x3102, // Type: Integer (16 bits signed)
128 128
     TEMP_Target_H1          = 0x3103, // Type: Integer (16 bits signed)
129 129
     TEMP_Max_H1             = 0x3104, // Type: Integer (16 bits unsigned)

+ 2
- 2
Marlin/src/lcd/extui/dgus_reloaded/definition/DGUS_VPList.cpp 파일 보기

@@ -102,7 +102,7 @@ const struct DGUS_VP vp_list[] PROGMEM = {
102 102
   VP_HELPER_RX(DGUS_Addr::TEMP_Preset,        &DGUSRxHandler::TempPreset),
103 103
   VP_HELPER_RX(DGUS_Addr::TEMP_SetTarget_Bed, &DGUSRxHandler::TempTarget),
104 104
   VP_HELPER_RX(DGUS_Addr::TEMP_SetTarget_H0,  &DGUSRxHandler::TempTarget),
105
-  #if HOTENDS > 1
105
+  #if HAS_MULTI_HOTEND
106 106
     VP_HELPER_RX(DGUS_Addr::TEMP_SetTarget_H1,  &DGUSRxHandler::TempTarget),
107 107
   #endif
108 108
   VP_HELPER_RX(DGUS_Addr::TEMP_Cool,          &DGUSRxHandler::TempCool),
@@ -217,7 +217,7 @@ const struct DGUS_VP vp_list[] PROGMEM = {
217 217
                     &thermalManager.temp_hotend[ExtUI::heater_t::H0].target,
218 218
                     &DGUSTxHandler::ExtraToInteger<int16_t>),
219 219
   VP_HELPER_TX(DGUS_Addr::TEMP_Max_H0, &DGUSTxHandler::TempMax),
220
-  #if HOTENDS > 1
220
+  #if HAS_MULTI_HOTEND
221 221
     VP_HELPER_TX_AUTO(DGUS_Addr::TEMP_Current_H1,
222 222
                       &thermalManager.temp_hotend[ExtUI::heater_t::H1].celsius,
223 223
                       &DGUSTxHandler::ExtraToInteger<float>),

+ 4
- 3
Marlin/src/lcd/menu/menu_temperature.cpp 파일 보기

@@ -122,7 +122,8 @@ void Temperature::lcd_preheat(const uint8_t e, const int8_t indh, const int8_t i
122 122
 
123 123
         HOTEND_LOOP() PREHEAT_ITEMS(editable.int8, e);
124 124
         ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M_ALL, []() {
125
-          HOTEND_LOOP() thermalManager.setTargetHotend(ui.material_preset[editable.int8].hotend_temp, e);
125
+          const celsius_t t = ui.material_preset[editable.int8].hotend_temp;
126
+          HOTEND_LOOP() thermalManager.setTargetHotend(t, e);
126 127
           TERN(HAS_HEATED_BED, _preheat_bed(editable.int8), ui.return_to_status());
127 128
         });
128 129
 
@@ -268,7 +269,7 @@ void menu_temperature() {
268 269
     //
269 270
     LOOP_L_N(m, PREHEAT_COUNT) {
270 271
       editable.int8 = m;
271
-      #if HOTENDS > 1 || HAS_HEATED_BED
272
+      #if HAS_MULTI_HOTEND || HAS_HEATED_BED
272 273
         SUBMENU_S(ui.get_preheat_label(m), MSG_PREHEAT_M, menu_preheat_m);
273 274
       #elif HAS_HOTEND
274 275
         ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M, do_preheat_end_m);
@@ -295,7 +296,7 @@ void menu_temperature() {
295 296
 
296 297
     LOOP_L_N(m, PREHEAT_COUNT) {
297 298
       editable.int8 = m;
298
-      #if HOTENDS > 1 || HAS_HEATED_BED
299
+      #if HAS_MULTI_HOTEND || HAS_HEATED_BED
299 300
         SUBMENU_S(ui.get_preheat_label(m), MSG_PREHEAT_M, menu_preheat_m);
300 301
       #else
301 302
         ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M, do_preheat_end_m);

+ 2
- 2
Marlin/src/lcd/tft/ui_common.h 파일 보기

@@ -57,7 +57,7 @@ void menu_item(const uint8_t row, bool sel = false);
57 57
 
58 58
 #define ABSOLUTE_ZERO     -273.15
59 59
 
60
-#if HAS_TEMP_CHAMBER && HOTENDS > 1
60
+#if HAS_TEMP_CHAMBER && HAS_MULTI_HOTEND
61 61
   #define ITEM_E0         0
62 62
   #define ITEM_E1         1
63 63
   #define ITEM_BED        2
@@ -74,7 +74,7 @@ void menu_item(const uint8_t row, bool sel = false);
74 74
   #define ITEM_COOLER     0
75 75
   #define ITEM_FAN        1
76 76
   #define ITEMS_COUNT     2
77
-#elif HOTENDS > 1
77
+#elif HAS_MULTI_HOTEND
78 78
   #define ITEM_E0         0
79 79
   #define ITEM_E1         1
80 80
   #define ITEM_BED        2

+ 1
- 1
Marlin/src/pins/esp32/pins_E4D.h 파일 보기

@@ -32,7 +32,7 @@
32 32
 
33 33
 #if EXTRUDERS > 1 || E_STEPPERS > 1
34 34
   #error "E4d@box only supports one E Stepper. Comment out this line to continue."
35
-#elif HOTENDS > 1
35
+#elif HAS_MULTI_HOTEND
36 36
   #error "E4d@box only supports one hotend / E-stepper. Comment out this line to continue."
37 37
 #endif
38 38
 

+ 1
- 1
Marlin/src/pins/esp32/pins_FYSETC_E4.h 파일 보기

@@ -32,7 +32,7 @@
32 32
 
33 33
 #if EXTRUDERS > 1 || E_STEPPERS > 1
34 34
   #error "FYSETC E4 only supports one E Stepper. Comment out this line to continue."
35
-#elif HOTENDS > 1
35
+#elif HAS_MULTI_HOTEND
36 36
   #error "FYSETC E4 only supports one hotend / E-stepper. Comment out this line to continue."
37 37
 #endif
38 38
 

+ 1
- 1
Marlin/src/pins/esp32/pins_MRR_ESPA.h 파일 보기

@@ -32,7 +32,7 @@
32 32
 
33 33
 #if EXTRUDERS > 1 || E_STEPPERS > 1
34 34
   #error "MRR ESPA only supports one E Stepper. Comment out this line to continue."
35
-#elif HOTENDS > 1
35
+#elif HAS_MULTI_HOTEND
36 36
   #error "MRR ESPA only supports one hotend / E-stepper. Comment out this line to continue."
37 37
 #endif
38 38
 

+ 1
- 1
Marlin/src/pins/esp32/pins_MRR_ESPE.h 파일 보기

@@ -33,7 +33,7 @@
33 33
 
34 34
 #if EXTRUDERS > 2 || E_STEPPERS > 2
35 35
   #error "MRR ESPE only supports two E Steppers. Comment out this line to continue."
36
-#elif HOTENDS > 1
36
+#elif HAS_MULTI_HOTEND
37 37
   #error "MRR ESPE only supports one hotend / E-stepper. Comment out this line to continue."
38 38
 #endif
39 39
 

+ 1
- 1
Marlin/src/pins/ramps/pins_K8600.h 파일 보기

@@ -25,7 +25,7 @@
25 25
  * VERTEX NANO Arduino Mega with RAMPS EFB v1.4 pin assignments.
26 26
  */
27 27
 
28
-#if HOTENDS > 1
28
+#if HAS_MULTI_HOTEND
29 29
   #error "Only 1 hotend is supported for Vertex Nano."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h 파일 보기

@@ -28,7 +28,7 @@
28 28
 #define REQUIRE_MEGA2560
29 29
 #include "env_validate.h"
30 30
 
31
-#if HOTENDS > 1 || E_STEPPERS > 1
31
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
32 32
   #error "Longer3D LGT KIT V1.0 board only supports one hotend / E-stepper. Comment out this line to continue."
33 33
 #endif
34 34
 

+ 1
- 1
Marlin/src/pins/ramps/pins_RAMPS_ENDER_4.h 파일 보기

@@ -21,7 +21,7 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#if HOTENDS > 1 || E_STEPPERS > 1
24
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
25 25
   #error "Ender-4 only supports one hotend / E-stepper. Comment out this line to continue."
26 26
 #endif
27 27
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_CCROBOT_MEEB_3DP.h 파일 보기

@@ -23,7 +23,7 @@
23 23
 
24 24
 #include "env_validate.h"
25 25
 
26
-#if HOTENDS > 1 || E_STEPPERS > 1
26
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
27 27
   #error "CCROBOT-ONLINE MEEB_3DP only supports one hotend / E-stepper. Comment out this line to continue."
28 28
 #endif
29 29
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V4.h 파일 보기

@@ -27,7 +27,7 @@
27 27
 
28 28
 #include "env_validate.h"
29 29
 
30
-#if HOTENDS > 1 || E_STEPPERS > 1
30
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
31 31
   #error "Creality V4 only supports one hotend / E-stepper. Comment out this line to continue."
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V4210.h 파일 보기

@@ -27,7 +27,7 @@
27 27
 
28 28
 #include "env_validate.h"
29 29
 
30
-#if HOTENDS > 1 || E_STEPPERS > 1
30
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
31 31
   #error "CREALITY supports up to 1 hotends / E-steppers. Comment out this line to continue."
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V452.h 파일 보기

@@ -25,7 +25,7 @@
25 25
  * Creality v4.5.2 (STM32F103RET6) board pin assignments
26 26
  */
27 27
 
28
-#if HOTENDS > 1 || E_STEPPERS > 1
28
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
29 29
   #error "Creality v4.5.2 only supports one hotend / E-stepper. Comment out this line to continue."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V453.h 파일 보기

@@ -25,7 +25,7 @@
25 25
  * Creality v4.5.3 (STM32F103RET6) board pin assignments
26 26
  */
27 27
 
28
-#if HOTENDS > 1 || E_STEPPERS > 1
28
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
29 29
   #error "Creality v4.5.3 only supports one hotend / E-stepper. Comment out this line to continue."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_FLSUN_HISPEED.h 파일 보기

@@ -31,7 +31,7 @@
31 31
 
32 32
 #if NOT_TARGET(__STM32F1__, STM32F1xx)
33 33
   #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
34
-#elif HOTENDS > 1 || E_STEPPERS > 1
34
+#elif HAS_MULTI_HOTEND || E_STEPPERS > 1
35 35
   #error "FLSUN HiSpeedV1 only supports one hotend / E-stepper. Comment out this line to continue."
36 36
 #endif
37 37
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_JGAURORA_A5S_A1.h 파일 보기

@@ -32,7 +32,7 @@
32 32
 
33 33
 #include "env_validate.h"
34 34
 
35
-#if HOTENDS > 1 || E_STEPPERS > 1
35
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
36 36
   #error "JGAurora A5S A1 only supports one hotend / E-stepper. Comment out this line to continue."
37 37
 #endif
38 38
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h 파일 보기

@@ -27,7 +27,7 @@
27 27
 
28 28
 #if NOT_TARGET(__STM32F1__, STM32F1xx)
29 29
   #error "Oops! Select a STM32F1 board in 'Tools > Board.'"
30
-#elif HOTENDS > 1 || E_STEPPERS > 1
30
+#elif HAS_MULTI_HOTEND || E_STEPPERS > 1
31 31
   #error "Longer3D only supports one hotend / E-stepper. Comment out this line to continue."
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3.h 파일 보기

@@ -25,7 +25,7 @@
25 25
  * MKS Robin E3 (STM32F103RCT6) board pin assignments
26 26
  */
27 27
 
28
-#if HOTENDS > 1 || E_STEPPERS > 1
28
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
29 29
   #error "MKS Robin E3 only supports one hotend / E-stepper. Comment out this line to continue."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3D.h 파일 보기

@@ -25,7 +25,7 @@
25 25
  * MKS Robin E3D (STM32F103RCT6) board pin assignments
26 26
  */
27 27
 
28
-#if HOTENDS > 1 || E_STEPPERS > 1
28
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
29 29
   #error "MKS Robin E3D only supports one hotend / E-stepper. Comment out this line to continue."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3D_V1_1.h 파일 보기

@@ -25,7 +25,7 @@
25 25
  * MKS Robin E3D v1.1 (STM32F103RCT6) board pin assignments
26 26
  */
27 27
 
28
-#if HOTENDS > 1 || E_STEPPERS > 1
28
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
29 29
   #error "MKS Robin E3D v1.1 only supports one hotend / E-stepper. Comment out this line to continue."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3P.h 파일 보기

@@ -27,7 +27,7 @@
27 27
 
28 28
 #include "env_validate.h"
29 29
 
30
-#if HOTENDS > 1 || E_STEPPERS > 1
30
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
31 31
   #error "MKS Robin E3P only supports one hotend / E-stepper. Comment out this line to continue."
32 32
 #elif HAS_FSMC_TFT
33 33
   #error "MKS Robin E3P doesn't support FSMC-based TFT displays."

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_V1_1.h 파일 보기

@@ -25,7 +25,7 @@
25 25
  * MKS Robin E3 v1.1 (STM32F103RCT6) board pin assignments
26 26
  */
27 27
 
28
-#if HOTENDS > 1 || E_STEPPERS > 1
28
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
29 29
   #error "MKS Robin E3 v1.1 only supports one hotend / E-stepper. Comment out this line to continue."
30 30
 #endif
31 31
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE.h 파일 보기

@@ -23,7 +23,7 @@
23 23
 
24 24
 #include "env_validate.h"
25 25
 
26
-#if HOTENDS > 1 || E_STEPPERS > 1
26
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
27 27
   #error "MKS Robin Lite only supports one hotend / E-stepper. Comment out this line to continue."
28 28
 #endif
29 29
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_MINI.h 파일 보기

@@ -27,7 +27,7 @@
27 27
 
28 28
 #include "env_validate.h"
29 29
 
30
-#if HOTENDS > 1 || E_STEPPERS > 1
30
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
31 31
   #error "MKS Robin mini only supports one hotend / E-stepper. Comment out this line to continue."
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/stm32f4/pins_ANET_ET4.h 파일 보기

@@ -23,7 +23,7 @@
23 23
 
24 24
 #include "env_validate.h"
25 25
 
26
-#if HOTENDS > 1 || E_STEPPERS > 1
26
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
27 27
   #error "Anet ET4 only supports one hotend / E-stepper. Comment out this line to continue."
28 28
 #endif
29 29
 

+ 1
- 1
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h 파일 보기

@@ -23,7 +23,7 @@
23 23
 
24 24
 #include "env_validate.h"
25 25
 
26
-#if HOTENDS > 1 || E_STEPPERS > 1
26
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
27 27
   #error "BIGTREE BTT002 V1.0 only supports one hotend / E-stepper. Comment out this line to continue."
28 28
 #endif
29 29
 

+ 1
- 1
Marlin/src/pins/stm32f4/pins_LERDGE_X.h 파일 보기

@@ -24,7 +24,7 @@
24 24
 #define ALLOW_STM32DUINO
25 25
 #include "env_validate.h"
26 26
 
27
-#if HOTENDS > 1 || E_STEPPERS > 1
27
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
28 28
   #error "LERDGE X only supports one hotend / E-stepper. Comment out this line to continue."
29 29
 #endif
30 30
 

+ 1
- 1
Marlin/src/pins/stm32f7/pins_REMRAM_V1.h 파일 보기

@@ -32,7 +32,7 @@
32 32
   #define SRAM_EEPROM_EMULATION                   // Emulate the EEPROM using Backup SRAM
33 33
 #endif
34 34
 
35
-#if HOTENDS > 1 || E_STEPPERS > 1
35
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
36 36
   #error "RemRam only supports one hotend / E-stepper. Comment out this line to continue."
37 37
 #endif
38 38
 

Loading…
취소
저장