Browse Source

Ping the job timer in M140 (#16849)

Gaston Dombiak 5 years ago
parent
commit
082117c4bb
No account linked to committer's email address
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/src/gcode/temperature/M140_M190.cpp

+ 9
- 0
Marlin/src/gcode/temperature/M140_M190.cpp View File

51
 void GcodeSuite::M140() {
51
 void GcodeSuite::M140() {
52
   if (DEBUGGING(DRYRUN)) return;
52
   if (DEBUGGING(DRYRUN)) return;
53
   if (parser.seenval('S')) thermalManager.setTargetBed(parser.value_celsius());
53
   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
54
 }
63
 }
55
 
64
 
56
 /**
65
 /**

Loading…
Cancel
Save