From 716e89b87c15085d781379f9ffdfd376da415c6b Mon Sep 17 00:00:00 2001 From: Bernhard Date: Tue, 29 Nov 2011 22:06:31 +0100 Subject: [PATCH] first homing move diagonal towards home switches. --- Marlin/Marlin.pde | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde index 3c6791336f..7c0d31011c 100644 --- a/Marlin/Marlin.pde +++ b/Marlin/Marlin.pde @@ -532,6 +532,19 @@ FORCE_INLINE void process_commands() feedrate = 0.0; home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2]))); + if( code_seen(axis_codes[0]) && code_seen(axis_codes[1]) ) //first diagonal move + { + current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0; + plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); + destination[X_AXIS] = 1.5 * X_MAX_LENGTH * X_HOME_DIR; + destination[Y_AXIS] = 1.5 * Y_MAX_LENGTH * Y_HOME_DIR; + feedrate =homing_feedrate[X_AXIS]; + if(homing_feedrate[Y_AXIS]