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
     ui.return_to_status();
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
 #endif // SDSUPPORT
75
 #endif // SDSUPPORT
69
 
76
 
70
 void menu_tune();
77
 void menu_tune();
88
           MENU_ITEM(function, MSG_PAUSE_PRINT, lcd_sdcard_pause);
95
           MENU_ITEM(function, MSG_PAUSE_PRINT, lcd_sdcard_pause);
89
         else
96
         else
90
           MENU_ITEM(function, MSG_RESUME_PRINT, lcd_sdcard_resume);
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
       else {
101
       else {
94
         MENU_ITEM(submenu, MSG_CARD_MENU, menu_sdcard);
102
         MENU_ITEM(submenu, MSG_CARD_MENU, menu_sdcard);

Loading…
Cancel
Save