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.
This commit is contained in:
parent
e5ae7a07d1
commit
3a3ab3391f
1 changed files with 1 additions and 0 deletions
|
@ -2088,6 +2088,7 @@ void Stepper::init() {
|
||||||
|
|
||||||
endstops.enable(true); // Start with endstops active. After homing they can be disabled
|
endstops.enable(true); // Start with endstops active. After homing they can be disabled
|
||||||
sei();
|
sei();
|
||||||
|
set_directions(); // Init directions to last_direction_bits = 0 Keeps Z from being reversed
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue