Quellcode durchsuchen

Hide Resume Print when not relevant

Scott Lahteine vor 6 Jahren
Ursprung
Commit
0a7ea7063f
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6
    1
      Marlin/src/lcd/menu/menu_main.cpp

+ 6
- 1
Marlin/src/lcd/menu/menu_main.cpp Datei anzeigen

138
       }
138
       }
139
     #endif // !HAS_ENCODER_WHEEL && SDSUPPORT
139
     #endif // !HAS_ENCODER_WHEEL && SDSUPPORT
140
 
140
 
141
-    MENU_ITEM(function, MSG_RESUME_PRINT, lcd_resume);
141
+    #if ENABLED(SDSUPPORT) || defined(ACTION_ON_RESUME)
142
+      #if ENABLED(SDSUPPORT)
143
+        if (card.isFileOpen() && card.isPaused())
144
+      #endif
145
+          MENU_ITEM(function, MSG_RESUME_PRINT, lcd_resume);
146
+    #endif
142
 
147
 
143
     MENU_ITEM(submenu, MSG_MOTION, menu_motion);
148
     MENU_ITEM(submenu, MSG_MOTION, menu_motion);
144
     MENU_ITEM(submenu, MSG_TEMPERATURE, menu_temperature);
149
     MENU_ITEM(submenu, MSG_TEMPERATURE, menu_temperature);

Laden…
Abbrechen
Speichern