Remove leading "M118"

This commit is contained in:
sarusani 2023-12-16 12:51:17 +01:00
parent 3c64874e20
commit 2c4474b1dd
1 changed files with 6 additions and 1 deletions

View File

@ -5129,7 +5129,12 @@ static void lcd_sheet_menu()
//! @endcode
static void lcd_printer_ready_state_toggle()
{
enquecommandf_P(PSTR("M118 %S"), (GetPrinterState() == PrinterState::IsReady) ? MSG_OCTOPRINT_NOT_READY : MSG_OCTOPRINT_READY);
if (GetPrinterState() == PrinterState::IsReady) {
SERIAL_ECHOLNRPGM(MSG_OCTOPRINT_NOT_READY);
}
else {
SERIAL_ECHOLNRPGM(MSG_OCTOPRINT_READY);
}
}
//! @brief Show Main Menu