Browse Source

Use Z_RAISE_BETWEEN_PROBINGS

Scott Lahteine 10 years ago
parent
commit
ae89ccd2c7
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      Marlin/Marlin_main.cpp

+ 5
- 3
Marlin/Marlin_main.cpp View File

@@ -1343,9 +1343,11 @@ inline void sync_plan_position() {
1343 1343
     run_z_probe();
1344 1344
     float measured_z = current_position[Z_AXIS];
1345 1345
 
1346
-    #if Z_RAISE_AFTER_PROBING > 0
1347
-      do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], Z_RAISE_AFTER_PROBING);
1348
-      st_synchronize();
1346
+    #if Z_RAISE_BETWEEN_PROBINGS > 0
1347
+      if (retract_action == ProbeStay) {
1348
+        do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], Z_RAISE_BETWEEN_PROBINGS);
1349
+        st_synchronize();
1350
+      }
1349 1351
     #endif
1350 1352
 
1351 1353
     #if !defined(Z_PROBE_SLED) && !defined(Z_PROBE_ALLEN_KEY)

Loading…
Cancel
Save