Browse Source

Apply LOGICAL_POSITION to home positions on Dual X

pull/1/head
Scott Lahteine 8 years ago
parent
commit
41278c1e8b
  1. 6
      Marlin/Marlin_main.cpp

6
Marlin/Marlin_main.cpp

@ -1318,11 +1318,11 @@ bool get_target_extruder_from_command(int code) {
else else
/** /**
* In dual carriage mode the extruder offset provides an override of the * In dual carriage mode the extruder offset provides an override of the
* second X-carriage offset when homed - otherwise X2_HOME_POS is used. * second X-carriage position when homed - otherwise X2_HOME_POS is used.
* This allow soft recalibration of the second extruder offset position * This allows soft recalibration of the second extruder home position
* without firmware reflash (through the M218 command). * 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) { static int x_home_dir(int extruder) {

Loading…
Cancel
Save