Sfoglia il codice sorgente

Fix the delta homing issue (#12974)

Nathan 6 anni fa
parent
commit
df1043516e
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 9
    1
      Marlin/src/module/delta.cpp

+ 9
- 1
Marlin/src/module/delta.cpp Vedi File

@@ -37,6 +37,10 @@
37 37
 #include "../lcd/ultralcd.h"
38 38
 #include "../Marlin.h"
39 39
 
40
+#if HAS_BED_PROBE
41
+  #include "probe.h"
42
+#endif
43
+
40 44
 #if ENABLED(SENSORLESS_HOMING)
41 45
   #include "../feature/tmc_util.h"
42 46
   #include "stepper_indirection.h"
@@ -229,7 +233,11 @@ void home_delta() {
229 233
   #endif
230 234
 
231 235
   // Move all carriages together linearly until an endstop is hit.
232
-  destination[Z_AXIS] = (delta_height + 10);
236
+  destination[Z_AXIS] = (delta_height
237
+    #if HAS_BED_PROBE
238
+      - zprobe_zoffset
239
+    #endif
240
+    + 10);
233 241
   buffer_line_to_destination(homing_feedrate(X_AXIS));
234 242
   planner.synchronize();
235 243
 

Loading…
Annulla
Salva