Explorar el Código

Merge pull request #1987 from thinkyhead/fix_homing_zpos

Disable endstops between homing bumps
Scott Lahteine hace 10 años
padre
commit
c1dd9bda7f
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      Marlin/Marlin_main.cpp

+ 6
- 0
Marlin/Marlin_main.cpp Ver fichero

@@ -1546,11 +1546,15 @@ static void homeaxis(AxisEnum axis) {
1546 1546
     current_position[axis] = 0;
1547 1547
     sync_plan_position();
1548 1548
 
1549
+    enable_endstops(false); // Disable endstops while moving away
1550
+
1549 1551
     // Move away from the endstop by the axis HOME_BUMP_MM
1550 1552
     destination[axis] = -home_bump_mm(axis) * axis_home_dir;
1551 1553
     line_to_destination();
1552 1554
     st_synchronize();
1553 1555
 
1556
+    enable_endstops(true); // Enable endstops for next homing move
1557
+
1554 1558
     // Slow down the feedrate for the next move
1555 1559
     set_homing_bump_feedrate(axis);
1556 1560
 
@@ -1587,10 +1591,12 @@ static void homeaxis(AxisEnum axis) {
1587 1591
     #ifdef DELTA
1588 1592
       // retrace by the amount specified in endstop_adj
1589 1593
       if (endstop_adj[axis] * axis_home_dir < 0) {
1594
+        enable_endstops(false); // Disable endstops while moving away
1590 1595
         sync_plan_position();
1591 1596
         destination[axis] = endstop_adj[axis];
1592 1597
         line_to_destination();
1593 1598
         st_synchronize();
1599
+        enable_endstops(true); // Enable endstops for next homing move
1594 1600
       }
1595 1601
     #endif
1596 1602
 

Loading…
Cancelar
Guardar