From 3a3ab3391ff56e165d2062d3b53a2f8b9cc3b486 Mon Sep 17 00:00:00 2001 From: forkoz Date: Mon, 22 Oct 2018 19:30:51 -0500 Subject: [PATCH] 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. --- Marlin/src/module/stepper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Marlin/src/module/stepper.cpp b/Marlin/src/module/stepper.cpp index d224114b9a..5f2dc0ca72 100644 --- a/Marlin/src/module/stepper.cpp +++ b/Marlin/src/module/stepper.cpp @@ -2088,6 +2088,7 @@ void Stepper::init() { endstops.enable(true); // Start with endstops active. After homing they can be disabled sei(); + set_directions(); // Init directions to last_direction_bits = 0 Keeps Z from being reversed } /**