Park Magnetic Switching Toolhead at the very end (#21552)

This commit is contained in:
Radim Karniš 2021-04-07 21:41:38 +02:00 committed by GitHub
parent 5ab220fa76
commit d61bc2d136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1112,7 +1112,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
#if ENABLED(MAGNETIC_SWITCHING_TOOLHEAD)
// If the original position is within tool store area, go to X origin at once
if (destination.y < SWITCHING_TOOLHEAD_Y_POS + SWITCHING_TOOLHEAD_Y_CLEAR) {
current_position.x = 0;
current_position.x = X_MIN_POS;
planner.buffer_line(current_position, planner.settings.max_feedrate_mm_s[X_AXIS], new_tool);
planner.synchronize();
}