mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
Merge pull request #3421 from jbrazio/bugfix/m109-EXTRUDE_MINTEMP-expansion
M109: Protect against EXTRUDE_MINTEMP expansion
This commit is contained in:
commit
c9c7c66b95
@ -4250,7 +4250,7 @@ inline void gcode_M109() {
|
|||||||
|
|
||||||
// Prevents a wait-forever situation if R is misused i.e. M109 R0
|
// Prevents a wait-forever situation if R is misused i.e. M109 R0
|
||||||
// Try to calculate a ballpark safe margin by halving EXTRUDE_MINTEMP
|
// Try to calculate a ballpark safe margin by halving EXTRUDE_MINTEMP
|
||||||
if (degTargetHotend(target_extruder) < (EXTRUDE_MINTEMP/2)) return;
|
if (degTargetHotend(target_extruder) < (EXTRUDE_MINTEMP)/2) return;
|
||||||
|
|
||||||
#ifdef TEMP_RESIDENCY_TIME
|
#ifdef TEMP_RESIDENCY_TIME
|
||||||
long residency_start_ms = -1;
|
long residency_start_ms = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user