Browse Source

Add the move_z_after_probing() functionality to UBL's G29 J

Roxy-3D 6 years ago
parent
commit
1d7dd0edfd
No account linked to committer's email address
1 changed files with 11 additions and 3 deletions
  1. 11
    3
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+ 11
- 3
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp View File

@@ -1562,7 +1562,12 @@
1562 1562
             incremental_LSF(&lsf_results, PROBE_PT_3_X, PROBE_PT_3_Y, measured_z);
1563 1563
           }
1564 1564
         }
1565
-
1565
+        
1566
+        STOW_PROBE();
1567
+        #ifdef Z_AFTER_PROBING
1568
+          move_z_after_probing();
1569
+        #endif
1570
+        
1566 1571
         if (abort_flag) {
1567 1572
           SERIAL_ECHOPGM("?Error probing point.  Aborting operation.\n");
1568 1573
           return;
@@ -1618,9 +1623,12 @@
1618 1623
 
1619 1624
           zig_zag ^= true;
1620 1625
         }
1621
-        STOW_PROBE();
1622 1626
       }
1623
-
1627
+      STOW_PROBE();
1628
+      #ifdef Z_AFTER_PROBING
1629
+        move_z_after_probing();
1630
+      #endif
1631
+      
1624 1632
       if (abort_flag || finish_incremental_LSF(&lsf_results)) {
1625 1633
         SERIAL_ECHOPGM("Could not complete LSF!");
1626 1634
         return;

Loading…
Cancel
Save