Skip to content

Commit 082117c

Browse files
authored
Ping the job timer in M140 (#16849)
1 parent 0e17d10 commit 082117c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Marlin/src/gcode/temperature/M140_M190.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@
5151
void GcodeSuite::M140() {
5252
if (DEBUGGING(DRYRUN)) return;
5353
if (parser.seenval('S')) thermalManager.setTargetBed(parser.value_celsius());
54+
55+
#if ENABLED(PRINTJOB_TIMER_AUTOSTART)
56+
/**
57+
* Stop the timer at the end of print. Both hotend and bed target
58+
* temperatures need to be set below mintemp. Order of M140 and M104
59+
* at the end of the print does not matter.
60+
*/
61+
thermalManager.check_timer_autostart(false, true);
62+
#endif
5463
}
5564

5665
/**

0 commit comments

Comments
 (0)