Skip to content

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

Merged
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_idex_crash_fix
Aug 4, 2018
Merged

[2.0.x] Fix Dual X Carriage tool change crash#11447
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_idex_crash_fix

Conversation

@thinkyhead
Copy link
Member

Based on #11425 by @silentninja1

Prevent move on tool change to out of bounds positions.


Followup to Issue #11252 with a different method that should be adaptable enough for other manufacturers. Tested on Formbot Trex2+.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

X2_MAX_POS is defined as the distance between the extruders when both are homed. It is not the same as the maximum position unless the X_HOME_POS (and X1_HOME_POS) are both zero. So the X2_MAX_POS here should probably be X1_MIN_POS + X2_MAX_POS.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marlin knows how to set the endstops for Dual X in the update_software_endstops function, so that should be called here instead of adding extra logic here in tool_change.

@thinkyhead thinkyhead force-pushed the bf2_idex_crash_fix branch 3 times, most recently from ce8e7c7 to 665cbfc Compare August 3, 2018 23:51
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change based on update to 1.1.x by @GMagician

@thinkyhead thinkyhead force-pushed the bf2_idex_crash_fix branch 2 times, most recently from 4a1b674 to 3296740 Compare August 4, 2018 00:59
@thinkyhead thinkyhead merged commit 9c62c47 into MarlinFirmware:bugfix-2.0.x Aug 4, 2018
@thinkyhead thinkyhead deleted the bf2_idex_crash_fix branch August 4, 2018 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant