Browse Source

As pointed out by @Blue-Marlin the previous code would raise the Z axis

twice for a servo based probe.
jbrazio 9 years ago
parent
commit
67e15aac3d
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Marlin/Marlin_main.cpp

+ 4
- 1
Marlin/Marlin_main.cpp View File

3199
       #if ENABLED(Z_PROBE_SLED)
3199
       #if ENABLED(Z_PROBE_SLED)
3200
         dock_sled(true); // dock the sled
3200
         dock_sled(true); // dock the sled
3201
       #elif Z_RAISE_AFTER_PROBING > 0
3201
       #elif Z_RAISE_AFTER_PROBING > 0
3202
-        raise_z_after_probing();
3202
+        // Raise Z axis for non-delta and non servo based probes
3203
+        #if !defined(HAS_SERVO_ENDSTOPS) && DISABLED(Z_PROBE_ALLEN_KEY) && DISABLED(Z_PROBE_SLED)
3204
+          raise_z_after_probing();
3205
+        #endif
3203
       #endif
3206
       #endif
3204
 
3207
 
3205
     #endif // !DELTA
3208
     #endif // !DELTA

Loading…
Cancel
Save