Update state

This commit is contained in:
3d-gussner 2023-11-17 10:59:58 +01:00
parent dfcaa330fa
commit 516ae1b952
2 changed files with 2 additions and 2 deletions

View File

@ -480,7 +480,7 @@ void get_command()
allow_when_stopped = true;
// Handle the USB timer
if ((*cmd_start == 'G') && !(IS_SD_PRINTING)) {
if ((*cmd_start == 'G') && (GetPrinterState() != PrinterState::IsSDPrinting)) {
usb_timer.start();
SetPrinterState(PrinterState::IsHostPrinting); //set printer state busy printing to hide LCD menu and report correctly M862.7 Q while USB printing
}

View File

@ -5126,7 +5126,7 @@ static void lcd_printer_status_toggle()
{
if (GetPrinterState() == PrinterState::IsReady) SetPrinterState(PrinterState::NotReady);
else SetPrinterState(PrinterState::IsReady);
enquecommandf_P(PSTR("M118 A1 action:%s"), (GetPrinterState() == PrinterState::IsReady) ? "ready" : "not_ready");
enquecommandf_P(PSTR("M118 A1 action:%S"), (GetPrinterState() == PrinterState::IsReady) ? "ready" : "not_ready");
}
//! @brief Show Main Menu