Browse Source

Don't deploy probe on Z Axis homing if Z_PROBE_AND_ENDSTOP is enabled,

unless Z_SAFE_HOMING is.
Chris Roadfeldt 9 years ago
parent
commit
62834a1c43
1 changed files with 5 additions and 7 deletions
  1. 5
    7
      Marlin/Marlin_main.cpp

+ 5
- 7
Marlin/Marlin_main.cpp View File

@@ -1493,20 +1493,18 @@ static void homeaxis(int axis) {
1493 1493
 
1494 1494
 
1495 1495
 #ifndef Z_PROBE_SLED
1496
-    // Engage Servo endstop if enabled and we are not using Z_PROBE_AND_ENDSTOP
1497
-    #ifndef Z_PROBE_AND_ENDSTOP
1498
-      #ifdef SERVO_ENDSTOPS
1499
-        #if SERVO_LEVELING
1496
+    // Engage Servo endstop if enabled and we are not using Z_PROBE_AND_ENDSTOP unless we are using Z_SAFE_HOMING
1497
+    #ifdef SERVO_ENDSTOPS && (defined (Z_SAFE_HOMING) || ! defined (Z_PROBE_AND_ENDSTOP))
1498
+      #if SERVO_LEVELING
1500 1499
         if (axis==Z_AXIS) {
1501 1500
           engage_z_probe();
1502 1501
         }
1503 1502
       else
1504
-        #endif
1503
+      #endif
1505 1504
       if (servo_endstops[axis] > -1) {
1506 1505
         servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]);
1507 1506
       }
1508
-      #endif
1509
-    #endif // Z_PROBE_AND_ENDSTOP
1507
+    #endif
1510 1508
 #endif // Z_PROBE_SLED
1511 1509
     #ifdef Z_DUAL_ENDSTOPS
1512 1510
       if (axis==Z_AXIS) In_Homing_Process(true);

Loading…
Cancel
Save