Update state
This commit is contained in:
parent
dfcaa330fa
commit
516ae1b952
|
|
@ -480,7 +480,7 @@ void get_command()
|
||||||
allow_when_stopped = true;
|
allow_when_stopped = true;
|
||||||
|
|
||||||
// Handle the USB timer
|
// Handle the USB timer
|
||||||
if ((*cmd_start == 'G') && !(IS_SD_PRINTING)) {
|
if ((*cmd_start == 'G') && (GetPrinterState() != PrinterState::IsSDPrinting)) {
|
||||||
usb_timer.start();
|
usb_timer.start();
|
||||||
SetPrinterState(PrinterState::IsHostPrinting); //set printer state busy printing to hide LCD menu and report correctly M862.7 Q while USB printing
|
SetPrinterState(PrinterState::IsHostPrinting); //set printer state busy printing to hide LCD menu and report correctly M862.7 Q while USB printing
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5126,7 +5126,7 @@ static void lcd_printer_status_toggle()
|
||||||
{
|
{
|
||||||
if (GetPrinterState() == PrinterState::IsReady) SetPrinterState(PrinterState::NotReady);
|
if (GetPrinterState() == PrinterState::IsReady) SetPrinterState(PrinterState::NotReady);
|
||||||
else SetPrinterState(PrinterState::IsReady);
|
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
|
//! @brief Show Main Menu
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue