From 40a4a716e144ca71c26579b7d96b547c89d5832e Mon Sep 17 00:00:00 2001 From: MasterPIC Date: Thu, 28 Sep 2017 02:48:02 +0200 Subject: [PATCH] Fix filament change bug in resume_print Expected behaviour: while (auto)extruding the new filament, the nozzle should not move. It should move (from filament replacement position to printing position) only after the user has confirmed the successful filament replacement and extrusion. Actual behaviour: while (auto)extruding the new filament, the nozzle moves from filament replacement position back to printing position. So the extrusion step is mixed with the movement required to go back to the printing position. The provided code seems to be working but probably a better fix is required. --- Marlin/Marlin_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 9b73fb06d..b046b5e0d 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -6353,6 +6353,8 @@ inline void gcode_M17() { filament_change_beep(max_beep_count, true); #endif + set_destination_to_current(); + if (load_length != 0) { #if ENABLED(ULTIPANEL) // Show "insert filament"