Ping the job timer in M140 (#16849)

This commit is contained in:
Gaston Dombiak 2020-02-13 16:43:47 -08:00 committed by GitHub
parent 0e17d10bf3
commit 082117c4bb
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
/**