ソースを参照

make QUICKHOME configureable

Bernhard 12年前
コミット
4f909963e4
2個のファイルの変更3行の追加1行の削除
  1. 1
    0
      Marlin/Configuration.h
  2. 2
    1
      Marlin/Marlin.pde

+ 1
- 0
Marlin/Configuration.h ファイルの表示

@@ -214,6 +214,7 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
214 214
 #define X_HOME_RETRACT_MM 5 
215 215
 #define Y_HOME_RETRACT_MM 5 
216 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 219
 #define AXIS_RELATIVE_MODES {false, false, false, false}
219 220
 

+ 2
- 1
Marlin/Marlin.pde ファイルの表示

@@ -532,7 +532,7 @@ FORCE_INLINE void process_commands()
532 532
       }
533 533
       feedrate = 0.0;
534 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 536
       if( code_seen(axis_codes[0]) && code_seen(axis_codes[1]) )  //first diagonal move
537 537
       {
538 538
         current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
@@ -545,6 +545,7 @@ FORCE_INLINE void process_commands()
545 545
         prepare_move();
546 546
         current_position[X_AXIS] = 0; current_position[Y_AXIS] = 0;
547 547
       }
548
+      #endif
548 549
       
549 550
       if((home_all_axis) || (code_seen(axis_codes[X_AXIS]))) 
550 551
       {

読み込み中…
キャンセル
保存