Skip to content

Commit

Permalink
Allow cold Filament Load/Unload with M302 P1 (MarlinFirmware#20262)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <[email protected]>
  • Loading branch information
2 people authored and dpreed committed Feb 5, 2021
1 parent 09c84dd commit 21e4cba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/feature/pause.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ static bool ensure_safe_temperature(const bool wait=true, const PauseMode mode=P
#endif
UNUSED(mode);

if (wait)
return thermalManager.wait_for_hotend(active_extruder);
if (wait) return thermalManager.wait_for_hotend(active_extruder);

wait_for_heatup = true; // Allow interruption by Emergency Parser M108
// Allow interruption by Emergency Parser M108
wait_for_heatup = TERN1(PREVENT_COLD_EXTRUSION, !thermalManager.allow_cold_extrude);
while (wait_for_heatup && ABS(thermalManager.degHotend(active_extruder) - thermalManager.degTargetHotend(active_extruder)) > TEMP_WINDOW)
idle();
wait_for_heatup = false;
Expand Down

0 comments on commit 21e4cba

Please sign in to comment.