chiark / gitweb /
make QUICKHOME configureable
authorBernhard <bkubicek@x201.(none)>
Sun, 4 Dec 2011 08:02:09 +0000 (09:02 +0100)
committerBernhard <bkubicek@x201.(none)>
Sun, 4 Dec 2011 08:02:09 +0000 (09:02 +0100)
Marlin/Configuration.h
Marlin/Marlin.pde

index 066e6100589c6abdf379745dc36d4c6f12948572..6f40bbb7333b696d24f3be52d843ea2580326122 100644 (file)
@@ -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 Y_HOME_RETRACT_MM 5 
 #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}
 
index 06fd09776616f60106d8e71d1a49a4e3d9b6821b..39f42f0ac6b67de035ef1f48c2d1c3647bf072ea 100644 (file)
@@ -532,7 +532,7 @@ 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])));
-      
+      #ifdef QUICK_HOME
       if( code_seen(axis_codes[0]) && code_seen(axis_codes[1]) )  //first diagonal move
       {
         current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
@@ -545,6 +545,7 @@ FORCE_INLINE void process_commands()
         prepare_move();
         current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
       }
+      #endif
       
       if((home_all_axis) || (code_seen(axis_codes[X_AXIS]))) 
       {