Fix: Reprint menu does not appear during the heating
This commit is contained in:
parent
73436e9351
commit
0b4af3b97f
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue