Added support for reprint and streamed GCODE

This commit is contained in:
Juan Francisco Estrada 2023-11-01 11:26:42 +01:00 committed by 3d-gussner
parent 532a5b3e2f
commit ce135a0976
1 changed files with 6 additions and 9 deletions

View File

@ -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();
}