Skip to content

Commit

Permalink
Added support for reprint and streamed GCODE
Browse files Browse the repository at this point in the history
  • Loading branch information
jfestrada committed Nov 1, 2023
1 parent 31d6c11 commit ead754c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5189,10 +5189,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;
}
Expand Down Expand Up @@ -7478,13 +7478,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();
}

Expand Down

0 comments on commit ead754c

Please sign in to comment.