Skip to content

Commit

Permalink
Fix: Reprint menu does not appear during the heating
Browse files Browse the repository at this point in the history
  • Loading branch information
jfestrada authored and 3d-gussner committed Nov 22, 2023
1 parent 73436e9 commit 0b4af3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5199,15 +5199,16 @@ static void lcd_main_menu()
#endif //TMC2130_DEBUG

// Menu item for reprint
if(!printer_active() && enableReprint && card.cardOK && !enableReprintUSB)
if(!printer_active() && enableReprint && card.cardOK && !enableReprintUSB && (heating_status == HeatingStatus::NO_HEATING))
{
MENU_ITEM_SUBMENU_P(_T(MSG_REPRINT), reprint_from_eeprom);
}else if(!printer_active() && enableReprintUSB )
}else if(!printer_active() && enableReprintUSB && (heating_status == HeatingStatus::NO_HEATING))
{
MENU_ITEM_SUBMENU_P(_T(MSG_REPRINT), lcd_reprint_usb_print);
}else if (!card.cardOK)
{
enableReprint = false;
enableReprintUSB = false;
}
// Menu is never shown when idle
if (babystep_allowed_strict() && (printJobOngoing() || lcd_commands_type == LcdCommands::Layer1Cal))
Expand Down
1 change: 0 additions & 1 deletion Firmware/ultralcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ void ultralcd_init();

// Reprint
void reprint_from_eeprom();
extern bool enableReprint;

// Set the current status message (equivalent to LCD_STATUS_NONE)
void lcdui_print_status_line(void);
Expand Down

0 comments on commit 0b4af3b

Please sign in to comment.