Browse Source

Fix for #12482 (#12483)

Fix Z-move to uninitialized position in SWITCHING_EXTRUDERS tool_change (no_move=true)
Marcio Teixeira 6 years ago
parent
commit
4bcb63b705
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      Marlin/src/module/tool_change.cpp

+ 2
- 3
Marlin/src/module/tool_change.cpp View File

@@ -96,13 +96,11 @@
96 96
 #endif // DO_SWITCH_EXTRUDER
97 97
 
98 98
 #if ENABLED(SWITCHING_NOZZLE)
99
-
100 99
   void move_nozzle_servo(const uint8_t e) {
101 100
     planner.synchronize();
102 101
     MOVE_SERVO(SWITCHING_NOZZLE_SERVO_NR, servo_angles[SWITCHING_NOZZLE_SERVO_NR][e]);
103 102
     safe_delay(500);
104 103
   }
105
-
106 104
 #endif // SWITCHING_NOZZLE
107 105
 
108 106
 #if ENABLED(PARKING_EXTRUDER)
@@ -596,8 +594,9 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
596 594
 
597 595
       #endif
598 596
 
597
+      set_destination_from_current();
598
+
599 599
       if (!no_move) {
600
-        set_destination_from_current();
601 600
         #if DISABLED(SWITCHING_NOZZLE)
602 601
           // Do a small lift to avoid the workpiece in the move back (below)
603 602
           #if ENABLED(TOOLCHANGE_PARK)

Loading…
Cancel
Save