Преглед изворни кода

Return set_directions() to stepper.cpp (#12182)

Initial manual Z move can be negative if your stepper is inverted. Leads to bad situations for crashed or initially booted printers.
forkoz пре 6 година
родитељ
комит
3a3ab3391f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1
    0
      Marlin/src/module/stepper.cpp

+ 1
- 0
Marlin/src/module/stepper.cpp Прегледај датотеку

@@ -2088,6 +2088,7 @@ void Stepper::init() {
2088 2088
 
2089 2089
   endstops.enable(true); // Start with endstops active. After homing they can be disabled
2090 2090
   sei();
2091
+  set_directions(); // Init directions to last_direction_bits = 0  Keeps Z from being reversed
2091 2092
 }
2092 2093
 
2093 2094
 /**

Loading…
Откажи
Сачувај