Browse Source

Homing direction is irrelevant in probe raise!

Scott Lahteine 9 years ago
parent
commit
9e8b3e5ee6
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      Marlin/Marlin_main.cpp

+ 1
- 7
Marlin/Marlin_main.cpp View File

1707
 
1707
 
1708
   /**
1708
   /**
1709
    * Raise Z to a minimum height to make room for a probe to move
1709
    * Raise Z to a minimum height to make room for a probe to move
1710
-   *
1711
-   * zprobe_zoffset: Negative of the Z height where the probe engages
1712
-   *        z_raise: The probing raise distance
1713
-   *
1714
-   * The zprobe_zoffset is negative for a switch below the nozzle, so
1715
-   * multiply by Z_HOME_DIR (-1) to move enough away from the bed.
1716
    */
1710
    */
1717
   inline void do_probe_raise(float z_raise) {
1711
   inline void do_probe_raise(float z_raise) {
1718
     #if ENABLED(DEBUG_LEVELING_FEATURE)
1712
     #if ENABLED(DEBUG_LEVELING_FEATURE)
1723
     #endif
1717
     #endif
1724
     float z_dest = home_offset[Z_AXIS] + z_raise;
1718
     float z_dest = home_offset[Z_AXIS] + z_raise;
1725
 
1719
 
1726
-    if ((Z_HOME_DIR) < 0 && zprobe_zoffset < 0)
1720
+    if (zprobe_zoffset < 0)
1727
       z_dest -= zprobe_zoffset;
1721
       z_dest -= zprobe_zoffset;
1728
 
1722
 
1729
     if (z_dest > current_position[Z_AXIS])
1723
     if (z_dest > current_position[Z_AXIS])

Loading…
Cancel
Save