Skip to content
Snippets Groups Projects
Unverified Commit 082117c4 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by GitHub
Browse files

Ping the job timer in M140 (#16849)

parent 0e17d10b
No related branches found
No related tags found
Loading
......@@ -51,6 +51,15 @@
void GcodeSuite::M140() {
if (DEBUGGING(DRYRUN)) return;
if (parser.seenval('S')) thermalManager.setTargetBed(parser.value_celsius());
#if ENABLED(PRINTJOB_TIMER_AUTOSTART)
/**
* Stop the timer at the end of print. Both hotend and bed target
* temperatures need to be set below mintemp. Order of M140 and M104
* at the end of the print does not matter.
*/
thermalManager.check_timer_autostart(false, true);
#endif
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment