From bace52afd7de9e5ac2fa503f813cd138050d971c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Roman=20Morav=C4=8D=C3=ADk?= <roman.moravcik@gmail.com>
Date: Tue, 12 Feb 2019 19:55:49 +0100
Subject: [PATCH] Fixed compilation with MMU2_MENUS disabled (#13140)

---
 Marlin/src/gcode/feature/pause/M600.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Marlin/src/gcode/feature/pause/M600.cpp b/Marlin/src/gcode/feature/pause/M600.cpp
index 7f5f173425..093cb2f796 100644
--- a/Marlin/src/gcode/feature/pause/M600.cpp
+++ b/Marlin/src/gcode/feature/pause/M600.cpp
@@ -37,7 +37,7 @@
   #include "../../../lcd/ultralcd.h"
 #endif
 
-#if ENABLED(PRUSA_MMU2)
+#if ENABLED(MMU2_MENUS)
   #include "../../../lcd/menu/menu_mmu2.h"
 #endif
 
@@ -75,7 +75,7 @@ void GcodeSuite::M600() {
   #endif
 
   // Show initial "wait for start" message
-  #if HAS_LCD_MENU && DISABLED(PRUSA_MMU2)
+  #if HAS_LCD_MENU && DISABLED(MMU2_MENUS)
     lcd_advanced_pause_show_message(ADVANCED_PAUSE_MESSAGE_INIT, ADVANCED_PAUSE_MODE_PAUSE_PRINT, target_extruder);
   #endif
 
@@ -114,7 +114,7 @@ void GcodeSuite::M600() {
     park_point.y += (active_extruder ? hotend_offset[Y_AXIS][active_extruder] : 0);
   #endif
 
-  #if ENABLED(PRUSA_MMU2)
+  #if ENABLED(MMU2_MENUS)
     // For MMU2 reset retract and load/unload values so they don't mess with MMU filament handling
     constexpr float unload_length = 0.5f,
                     slow_load_length = 0.0f,
@@ -141,7 +141,7 @@ void GcodeSuite::M600() {
   );
 
   if (pause_print(retract, park_point, unload_length, true DXC_PASS)) {
-    #if ENABLED(PRUSA_MMU2)
+    #if ENABLED(MMU2_MENUS)
       mmu2_M600();
       resume_print(slow_load_length, fast_load_length, 0, beep_count DXC_PASS);
     #else
-- 
GitLab