From 14ddda285c6d9c1dde0b39abeb91757c4ec3ac4c Mon Sep 17 00:00:00 2001 From: InsanityAutomation <38436470+InsanityAutomation@users.noreply.github.com> Date: Thu, 27 Dec 2018 12:36:39 -0500 Subject: [PATCH] Confirmation on Abort SD print (#12717) --- Marlin/src/lcd/menu/menu_main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Marlin/src/lcd/menu/menu_main.cpp b/Marlin/src/lcd/menu/menu_main.cpp index 621757685..179fe035f 100644 --- a/Marlin/src/lcd/menu/menu_main.cpp +++ b/Marlin/src/lcd/menu/menu_main.cpp @@ -65,6 +65,13 @@ ui.return_to_status(); } + void menu_sdcard_abort_confirm() { + START_MENU(); + MENU_BACK(MSG_MAIN); + MENU_ITEM(function, MSG_STOP_PRINT, lcd_sdcard_stop); + END_MENU(); + } + #endif // SDSUPPORT void menu_tune(); @@ -88,7 +95,8 @@ void menu_main() { MENU_ITEM(function, MSG_PAUSE_PRINT, lcd_sdcard_pause); else MENU_ITEM(function, MSG_RESUME_PRINT, lcd_sdcard_resume); - MENU_ITEM(function, MSG_STOP_PRINT, lcd_sdcard_stop); + + MENU_ITEM(submenu, MSG_STOP_PRINT, menu_sdcard_abort_confirm); } else { MENU_ITEM(submenu, MSG_CARD_MENU, menu_sdcard);