Merge pull request #4541 from sarusani/actionReadyOpt

Remove leading M118 from "action:ready" & "action:not_ready"
This commit is contained in:
3d-gussner 2023-12-19 15:02:09 +01:00 committed by GitHub
commit 15a3fb998c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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