make QUICKHOME configureable
This commit is contained in:
parent
6b86f15686
commit
4f909963e4
2 changed files with 3 additions and 1 deletions
|
@ -214,6 +214,7 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
|
||||||
#define X_HOME_RETRACT_MM 5
|
#define X_HOME_RETRACT_MM 5
|
||||||
#define Y_HOME_RETRACT_MM 5
|
#define Y_HOME_RETRACT_MM 5
|
||||||
#define Z_HOME_RETRACT_MM 1
|
#define Z_HOME_RETRACT_MM 1
|
||||||
|
#define QUICK_HOME //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
|
||||||
|
|
||||||
#define AXIS_RELATIVE_MODES {false, false, false, false}
|
#define AXIS_RELATIVE_MODES {false, false, false, false}
|
||||||
|
|
||||||
|
|
|
@ -532,7 +532,7 @@ FORCE_INLINE void process_commands()
|
||||||
}
|
}
|
||||||
feedrate = 0.0;
|
feedrate = 0.0;
|
||||||
home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])));
|
home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])));
|
||||||
|
#ifdef QUICK_HOME
|
||||||
if( code_seen(axis_codes[0]) && code_seen(axis_codes[1]) ) //first diagonal move
|
if( code_seen(axis_codes[0]) && code_seen(axis_codes[1]) ) //first diagonal move
|
||||||
{
|
{
|
||||||
current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
|
current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
|
||||||
|
@ -545,6 +545,7 @@ FORCE_INLINE void process_commands()
|
||||||
prepare_move();
|
prepare_move();
|
||||||
current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
|
current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if((home_all_axis) || (code_seen(axis_codes[X_AXIS])))
|
if((home_all_axis) || (code_seen(axis_codes[X_AXIS])))
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue