Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When SWITCHING_EXTRUDERS is enabled and "tool_change()" is called with "no_move=true", the toolhead will move to an uninitalized position in Z.
  • Loading branch information
marcio-ao committed Nov 19, 2018
1 parent a4c15dc commit 34ef3d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Marlin/src/module/tool_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,11 @@
#endif // DO_SWITCH_EXTRUDER

#if ENABLED(SWITCHING_NOZZLE)

void move_nozzle_servo(const uint8_t e) {
planner.synchronize();
MOVE_SERVO(SWITCHING_NOZZLE_SERVO_NR, servo_angles[SWITCHING_NOZZLE_SERVO_NR][e]);
safe_delay(500);
}

#endif // SWITCHING_NOZZLE

#if ENABLED(PARKING_EXTRUDER)
Expand Down Expand Up @@ -594,8 +592,9 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n

#endif

set_destination_from_current();

if (!no_move) {
set_destination_from_current();
#if DISABLED(SWITCHING_NOZZLE)
// Do a small lift to avoid the workpiece in the move back (below)
#if ENABLED(TOOLCHANGE_PARK)
Expand Down

0 comments on commit 34ef3d3

Please sign in to comment.