Skip to content

Commit bf38241

Browse files
committed
Make M117 message persistent when using G4 command
This is also supported in Marlin 2 FW Fixes prusa3d#1443 Fixes prusa3d#2970
1 parent 727060d commit bf38241

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Firmware/Marlin_main.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -4939,7 +4939,13 @@ if(eSoundMode!=e_SOUND_MODE_SILENT)
49394939
codenum = 0;
49404940
if(code_seen('P')) codenum = code_value(); // milliseconds to wait
49414941
if(code_seen('S')) codenum = code_value() * 1000; // seconds to wait
4942-
if(codenum != 0) LCD_MESSAGERPGM(_n("Sleep..."));////MSG_DWELL
4942+
if(codenum != 0)
4943+
{
4944+
if(custom_message_type != CustomMsg::M117)
4945+
{
4946+
LCD_MESSAGERPGM(_n("Sleep..."));////MSG_DWELL
4947+
}
4948+
}
49434949
st_synchronize();
49444950
codenum += _millis(); // keep track of when we started waiting
49454951
previous_millis_cmd.start();

0 commit comments

Comments
 (0)