瀏覽代碼

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

Loading…
取消
儲存