From 0c4b5795fa46434390bd47562e45c7132a16ce6a Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Mon, 5 Jun 2017 10:22:02 +0200 Subject: [PATCH] G4: in case that there is no dwell time set, "Sleep..." message is not printed on LCD --- Firmware/Marlin_main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 90f4cbd59..1f5466b18 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -2300,12 +2300,11 @@ void process_commands() prepare_arc_move(false); } break; - case 4: // G4 dwell - LCD_MESSAGERPGM(MSG_DWELL); + case 4: // G4 dwell 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(MSG_DWELL); st_synchronize(); codenum += millis(); // keep track of when we started waiting previous_millis_cmd = millis();