Browse Source

Include negative Z probe offset in clearance move

Scott Lahteine 8 years ago
parent
commit
9485aa8f13
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      Marlin/Marlin_main.cpp

+ 1
- 0
Marlin/Marlin_main.cpp View File

2057
       // If the nozzle is above the travel height then
2057
       // If the nozzle is above the travel height then
2058
       // move down quickly before doing the slow probe
2058
       // move down quickly before doing the slow probe
2059
       float z = LOGICAL_Z_POSITION(Z_CLEARANCE_BETWEEN_PROBES);
2059
       float z = LOGICAL_Z_POSITION(Z_CLEARANCE_BETWEEN_PROBES);
2060
+      if (zprobe_zoffset < 0) z -= zprobe_zoffset;
2060
       if (z < current_position[Z_AXIS])
2061
       if (z < current_position[Z_AXIS])
2061
         do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2062
         do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2062
 
2063
 

Loading…
Cancel
Save