Apply LOGICAL_POSITION to home positions on Dual X

This commit is contained in:
Scott Lahteine 2016-11-07 00:20:19 -06:00
parent 053fb55af6
commit 41278c1e8b

View file

@ -1318,11 +1318,11 @@ bool get_target_extruder_from_command(int code) {
else
/**
* In dual carriage mode the extruder offset provides an override of the
* second X-carriage offset when homed - otherwise X2_HOME_POS is used.
* This allow soft recalibration of the second extruder offset position
* second X-carriage position when homed - otherwise X2_HOME_POS is used.
* This allows soft recalibration of the second extruder home position
* without firmware reflash (through the M218 command).
*/
return (hotend_offset[X_AXIS][1] > 0) ? hotend_offset[X_AXIS][1] : X2_HOME_POS;
return LOGICAL_X_POSITION(hotend_offset[X_AXIS][1] > 0 ? hotend_offset[X_AXIS][1] : X2_HOME_POS);
}
static int x_home_dir(int extruder) {