[2.0.x] Fix Dual X Carriage tool change crash (#11447)

This commit is contained in:
Scott Lahteine
2018-08-03 20:47:29 -05:00
committed by GitHub
parent 9bae413901
commit 9c62c47579
55 changed files with 139 additions and 9 deletions

View File

@ -1483,7 +1483,7 @@ void homeaxis(const AxisEnum axis) {
if (axis == X_AXIS) {
// In Dual X mode hotend_offset[X] is T1's home position
float dual_max_x = MAX(hotend_offset[X_AXIS][1], X2_MAX_POS);
const float dual_max_x = MAX(hotend_offset[X_AXIS][1], X2_MAX_POS);
if (active_extruder != 0) {
// T1 can move from X2_MIN_POS to X2_MAX_POS or X2 home position (whichever is larger)