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.
This commit is contained in:
MasterPIC 2017-09-28 02:48:02 +02:00 committed by Scott Lahteine
parent 802f147686
commit 40a4a716e1

View File

@ -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"