Browse Source
M109: Protected against EXTRUDE_MINTEMP expansion
pull/1/head
João Brázio
9 years ago
No known key found for this signature in database
GPG Key ID: F62CFD37DFFDB540
1 changed files with
1 additions and
1 deletions
-
Marlin/Marlin_main.cpp
|
@ -4209,7 +4209,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; |
|
|