瀏覽代碼

Fixed compilation with MMU2_MENUS disabled (#13140)

Roman Moravčík 6 年之前
父節點
當前提交
bace52afd7
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      Marlin/src/gcode/feature/pause/M600.cpp

+ 4
- 4
Marlin/src/gcode/feature/pause/M600.cpp 查看文件

37
   #include "../../../lcd/ultralcd.h"
37
   #include "../../../lcd/ultralcd.h"
38
 #endif
38
 #endif
39
 
39
 
40
-#if ENABLED(PRUSA_MMU2)
40
+#if ENABLED(MMU2_MENUS)
41
   #include "../../../lcd/menu/menu_mmu2.h"
41
   #include "../../../lcd/menu/menu_mmu2.h"
42
 #endif
42
 #endif
43
 
43
 
75
   #endif
75
   #endif
76
 
76
 
77
   // Show initial "wait for start" message
77
   // Show initial "wait for start" message
78
-  #if HAS_LCD_MENU && DISABLED(PRUSA_MMU2)
78
+  #if HAS_LCD_MENU && DISABLED(MMU2_MENUS)
79
     lcd_advanced_pause_show_message(ADVANCED_PAUSE_MESSAGE_INIT, ADVANCED_PAUSE_MODE_PAUSE_PRINT, target_extruder);
79
     lcd_advanced_pause_show_message(ADVANCED_PAUSE_MESSAGE_INIT, ADVANCED_PAUSE_MODE_PAUSE_PRINT, target_extruder);
80
   #endif
80
   #endif
81
 
81
 
114
     park_point.y += (active_extruder ? hotend_offset[Y_AXIS][active_extruder] : 0);
114
     park_point.y += (active_extruder ? hotend_offset[Y_AXIS][active_extruder] : 0);
115
   #endif
115
   #endif
116
 
116
 
117
-  #if ENABLED(PRUSA_MMU2)
117
+  #if ENABLED(MMU2_MENUS)
118
     // For MMU2 reset retract and load/unload values so they don't mess with MMU filament handling
118
     // For MMU2 reset retract and load/unload values so they don't mess with MMU filament handling
119
     constexpr float unload_length = 0.5f,
119
     constexpr float unload_length = 0.5f,
120
                     slow_load_length = 0.0f,
120
                     slow_load_length = 0.0f,
141
   );
141
   );
142
 
142
 
143
   if (pause_print(retract, park_point, unload_length, true DXC_PASS)) {
143
   if (pause_print(retract, park_point, unload_length, true DXC_PASS)) {
144
-    #if ENABLED(PRUSA_MMU2)
144
+    #if ENABLED(MMU2_MENUS)
145
       mmu2_M600();
145
       mmu2_M600();
146
       resume_print(slow_load_length, fast_load_length, 0, beep_count DXC_PASS);
146
       resume_print(slow_load_length, fast_load_length, 0, beep_count DXC_PASS);
147
     #else
147
     #else

Loading…
取消
儲存