|
@ -415,12 +415,14 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
const float xdiff = hotend_offset[X_AXIS][tmp_extruder] - hotend_offset[X_AXIS][active_extruder], |
|
|
const float xdiff = hotend_offset[X_AXIS][tmp_extruder] - hotend_offset[X_AXIS][active_extruder], |
|
|
ydiff = hotend_offset[Y_AXIS][tmp_extruder] - hotend_offset[Y_AXIS][active_extruder]; |
|
|
ydiff = hotend_offset[Y_AXIS][tmp_extruder] - hotend_offset[Y_AXIS][active_extruder], |
|
|
|
|
|
zdiff = hotend_offset[Z_AXIS][tmp_extruder] - hotend_offset[Z_AXIS][active_extruder]; |
|
|
|
|
|
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR("Offset Tool XY by { ", xdiff); |
|
|
SERIAL_ECHOPAIR("Offset Tool XY by { ", xdiff); |
|
|
SERIAL_ECHOPAIR(", ", ydiff); |
|
|
SERIAL_ECHOPAIR(", ", ydiff); |
|
|
|
|
|
SERIAL_ECHOPAIR(", ", zdiff); |
|
|
SERIAL_ECHOLNPGM(" }"); |
|
|
SERIAL_ECHOLNPGM(" }"); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
@ -428,6 +430,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n |
|
|
// The newly-selected extruder XY is actually at...
|
|
|
// The newly-selected extruder XY is actually at...
|
|
|
current_position[X_AXIS] += xdiff; |
|
|
current_position[X_AXIS] += xdiff; |
|
|
current_position[Y_AXIS] += ydiff; |
|
|
current_position[Y_AXIS] += ydiff; |
|
|
|
|
|
current_position[Z_AXIS] += zdiff; |
|
|
|
|
|
|
|
|
// Set the new active extruder
|
|
|
// Set the new active extruder
|
|
|
active_extruder = tmp_extruder; |
|
|
active_extruder = tmp_extruder; |
|
|