Browse Source

Ping the job timer in M140 (#16849)

pull/1/head
Gaston Dombiak 5 years ago
committed by GitHub
parent
commit
082117c4bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      Marlin/src/gcode/temperature/M140_M190.cpp

9
Marlin/src/gcode/temperature/M140_M190.cpp

@ -51,6 +51,15 @@
void GcodeSuite::M140() { void GcodeSuite::M140() {
if (DEBUGGING(DRYRUN)) return; if (DEBUGGING(DRYRUN)) return;
if (parser.seenval('S')) thermalManager.setTargetBed(parser.value_celsius()); 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
} }
/** /**

Loading…
Cancel
Save