Skip to content

Commit

Permalink
M600: Fix bug where fan is not turned off
Browse files Browse the repository at this point in the history
The firmware saves the current fanspeed before parking,
and the fanspeed is restored after unparking. The problem is the fan
was never actually paused.

Fixes MarlinFirmware#3670
  • Loading branch information
gudnimg authored and DRracer committed Nov 18, 2022
1 parent 2096acc commit c86c961
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3538,6 +3538,9 @@ static void gcode_M600(bool automatic, float x_position, float y_position, float

memcpy(lastpos, current_position, sizeof(lastpos));

// Turn off the fan
fanSpeed = 0;

// Retract E
current_position[E_AXIS] += e_shift;
plan_buffer_line_curposXYZE(FILAMENTCHANGE_RFEED);
Expand Down

0 comments on commit c86c961

Please sign in to comment.