mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Update print job timer with Chamber temp (#17552)
This commit is contained in:
parent
4edaffebfb
commit
808f632997
@ -50,17 +50,19 @@
|
|||||||
*/
|
*/
|
||||||
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)
|
#if ENABLED(PRINTJOB_TIMER_AUTOSTART)
|
||||||
/**
|
/**
|
||||||
* Stop the timer at the end of print. Both hotend and bed target
|
* Stop the timer at the end of print. Hotend, bed target, and chamber
|
||||||
* temperatures need to be set below mintemp. Order of M140 and M104
|
* temperatures need to be set below mintemp. Order of M140, M104, and M141
|
||||||
* at the end of the print does not matter.
|
* at the end of the print does not matter.
|
||||||
*/
|
*/
|
||||||
thermalManager.check_timer_autostart(false, true);
|
thermalManager.check_timer_autostart(false, true);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M190: Sxxx Wait for bed current temp to reach target temp. Waits only when heating
|
* M190: Sxxx Wait for bed current temp to reach target temp. Waits only when heating
|
||||||
|
@ -51,7 +51,18 @@
|
|||||||
*/
|
*/
|
||||||
void GcodeSuite::M141() {
|
void GcodeSuite::M141() {
|
||||||
if (DEBUGGING(DRYRUN)) return;
|
if (DEBUGGING(DRYRUN)) return;
|
||||||
if (parser.seenval('S')) thermalManager.setTargetChamber(parser.value_celsius());
|
if (parser.seenval('S')) {
|
||||||
|
thermalManager.setTargetChamber(parser.value_celsius());
|
||||||
|
|
||||||
|
#if ENABLED(PRINTJOB_TIMER_AUTOSTART)
|
||||||
|
/**
|
||||||
|
* Stop the timer at the end of print. Hotend, bed target, and chamber
|
||||||
|
* temperatures need to be set below mintemp. Order of M140, M104, and M141
|
||||||
|
* at the end of the print does not matter.
|
||||||
|
*/
|
||||||
|
thermalManager.check_timer_autostart(false, true);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user