From ce135a09767ff51329cf9c1483767ee00269c5a5 Mon Sep 17 00:00:00 2001 From: Juan Francisco Estrada Date: Wed, 1 Nov 2023 11:26:42 +0100 Subject: [PATCH] Added support for reprint and streamed GCODE --- Firmware/ultralcd.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 94cccfeb5..020562ebb 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -5201,10 +5201,10 @@ static void lcd_main_menu() if(!printer_active() && enableReprint && card.cardOK) { MENU_ITEM_SUBMENU_P(_T(MSG_REPRINT), reprint_from_eeprom); - }else if(saved_printing_type == PowerPanic::PRINT_TYPE_USB) + }else if(!printer_active() && enableReprint && saved_printing_type == PowerPanic::PRINT_TYPE_USB) { lcd_reprint_usb_print(); - }else if (!card.cardOK) + }else if (!card.cardOK && (saved_printing_type != PowerPanic::PRINT_TYPE_USB)) { enableReprint = false; } @@ -7505,13 +7505,10 @@ void reprint_from_eeprom() { strcat_P(altfilename, PSTR(".g")); } } - if (lcd_show_fullscreen_message_yes_no_and_wait_P(altfilename, false, LCD_LEFT_BUTTON_CHOICE)==LCD_LEFT_BUTTON_CHOICE) - { - // M23: Select SD file - enquecommandf_P(MSG_M23, altfilename); - // M24: Start/resume SD print - enquecommand_P(MSG_M24); - } + // M23: Select SD file + enquecommandf_P(MSG_M23, altfilename); + // M24: Start/resume SD print + enquecommand_P(MSG_M24); lcd_return_to_status(); }