From c86c961d4ebdde8fecb941b90fe0ca639bb624f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Thu, 10 Nov 2022 21:49:59 +0000 Subject: [PATCH] M600: Fix bug where fan is not turned off 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 #3670 --- Firmware/Marlin_main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 5357328f4..37e77cb9a 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -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);