From bf38241afe1ab4ec46bb8ff78e2dbae9e18c8f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Mon, 18 Apr 2022 17:07:34 +0000 Subject: [PATCH] Make M117 message persistent when using G4 command This is also supported in Marlin 2 FW Fixes #1443 Fixes #2970 --- Firmware/Marlin_main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index caea1caca..94a05b6e2 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -4939,7 +4939,13 @@ if(eSoundMode!=e_SOUND_MODE_SILENT) codenum = 0; if(code_seen('P')) codenum = code_value(); // milliseconds to wait if(code_seen('S')) codenum = code_value() * 1000; // seconds to wait - if(codenum != 0) LCD_MESSAGERPGM(_n("Sleep..."));////MSG_DWELL + if(codenum != 0) + { + if(custom_message_type != CustomMsg::M117) + { + LCD_MESSAGERPGM(_n("Sleep..."));////MSG_DWELL + } + } st_synchronize(); codenum += _millis(); // keep track of when we started waiting previous_millis_cmd.start();