Browse Source

Confirmation on Abort SD print (#12717)

InsanityAutomation 6 years ago
parent
commit
14ddda285c
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      Marlin/src/lcd/menu/menu_main.cpp

+ 9
- 1
Marlin/src/lcd/menu/menu_main.cpp View File

@@ -65,6 +65,13 @@
65 65
     ui.return_to_status();
66 66
   }
67 67
 
68
+  void menu_sdcard_abort_confirm() {
69
+    START_MENU();
70
+    MENU_BACK(MSG_MAIN);
71
+    MENU_ITEM(function, MSG_STOP_PRINT, lcd_sdcard_stop);
72
+    END_MENU();
73
+  }
74
+
68 75
 #endif // SDSUPPORT
69 76
 
70 77
 void menu_tune();
@@ -88,7 +95,8 @@ void menu_main() {
88 95
           MENU_ITEM(function, MSG_PAUSE_PRINT, lcd_sdcard_pause);
89 96
         else
90 97
           MENU_ITEM(function, MSG_RESUME_PRINT, lcd_sdcard_resume);
91
-        MENU_ITEM(function, MSG_STOP_PRINT, lcd_sdcard_stop);
98
+
99
+        MENU_ITEM(submenu, MSG_STOP_PRINT, menu_sdcard_abort_confirm);
92 100
       }
93 101
       else {
94 102
         MENU_ITEM(submenu, MSG_CARD_MENU, menu_sdcard);

Loading…
Cancel
Save