Skip to content
Snippets Groups Projects
Unverified Commit 62d9e3f5 authored by InsanityAutomation's avatar InsanityAutomation Committed by GitHub
Browse files

Force T0 in UBL G29 on all multi-hotend setups (#16774)

parent 3ded99b8
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@
#include "../../../gcode/gcode.h"
#include "../../../libs/least_squares_fit.h"
#if ENABLED(DUAL_X_CARRIAGE)
#if HOTENDS > 1
#include "../../../module/tool_change.h"
#endif
......@@ -305,12 +305,15 @@
const int8_t p_val = parser.intval('P', -1);
const bool may_move = p_val == 1 || p_val == 2 || p_val == 4 || parser.seen('J');
#if HOTENDS > 1
const uint8_t old_tool_index = active_extruder;
#endif
// Check for commands that require the printer to be homed
if (may_move) {
planner.synchronize();
if (axes_need_homing()) gcode.home_all_axes();
#if ENABLED(DUAL_X_CARRIAGE)
#if HOTENDS > 1
if (active_extruder != 0) tool_change(0);
#endif
}
......@@ -684,6 +687,9 @@
UNUSED(probe_deployed);
#endif
#if HOTENDS > 1
tool_change(old_tool_index);
#endif
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment