Ver código fonte

Include probe offset for moving "close to the bed"

Scott Lahteine 8 anos atrás
pai
commit
d309a9647d
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6
    1
      Marlin/Marlin_main.cpp

+ 6
- 1
Marlin/Marlin_main.cpp Ver arquivo

@@ -2162,9 +2162,14 @@ static void clean_up_after_endstop_or_probe_move() {
2162 2162
 
2163 2163
       // move up by the bump distance
2164 2164
       do_blocking_move_to_z(current_position[Z_AXIS] + home_bump_mm(Z_AXIS), MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2165
+
2165 2166
     #else
2167
+
2166 2168
       // move fast, close to the bed
2167
-      do_blocking_move_to_z(home_bump_mm(Z_AXIS), MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2169
+      float z = LOGICAL_Z_POSITION(home_bump_mm(Z_AXIS));
2170
+      if (zprobe_zoffset < 0) z -= zprobe_zoffset;
2171
+      do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2172
+
2168 2173
     #endif
2169 2174
 
2170 2175
     // move down slowly to find bed

Carregando…
Cancelar
Salvar