Browse Source

make QUICKHOME configureable

Bernhard 13 years ago
parent
commit
4f909963e4
2 changed files with 3 additions and 1 deletions
  1. 1
    0
      Marlin/Configuration.h
  2. 2
    1
      Marlin/Marlin.pde

+ 1
- 0
Marlin/Configuration.h View File

214
 #define X_HOME_RETRACT_MM 5 
214
 #define X_HOME_RETRACT_MM 5 
215
 #define Y_HOME_RETRACT_MM 5 
215
 #define Y_HOME_RETRACT_MM 5 
216
 #define Z_HOME_RETRACT_MM 1 
216
 #define Z_HOME_RETRACT_MM 1 
217
+#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
217
 
218
 
218
 #define AXIS_RELATIVE_MODES {false, false, false, false}
219
 #define AXIS_RELATIVE_MODES {false, false, false, false}
219
 
220
 

+ 2
- 1
Marlin/Marlin.pde View File

532
       }
532
       }
533
       feedrate = 0.0;
533
       feedrate = 0.0;
534
       home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])));
534
       home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])));
535
-      
535
+      #ifdef QUICK_HOME
536
       if( code_seen(axis_codes[0]) && code_seen(axis_codes[1]) )  //first diagonal move
536
       if( code_seen(axis_codes[0]) && code_seen(axis_codes[1]) )  //first diagonal move
537
       {
537
       {
538
         current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
538
         current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
545
         prepare_move();
545
         prepare_move();
546
         current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
546
         current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
547
       }
547
       }
548
+      #endif
548
       
549
       
549
       if((home_all_axis) || (code_seen(axis_codes[X_AXIS]))) 
550
       if((home_all_axis) || (code_seen(axis_codes[X_AXIS]))) 
550
       {
551
       {

Loading…
Cancel
Save