Skip to content

Commit

Permalink
Ping the job timer in M140 (#16849)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdombiak authored Feb 14, 2020
1 parent 0e17d10 commit 082117c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Marlin/src/gcode/temperature/M140_M190.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down

0 comments on commit 082117c

Please sign in to comment.