From 809b232fa256c345114ea36c9fbb879e93b29f12 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 14 Sep 2018 20:00:55 -0500 Subject: [PATCH] Fix stepper directions after M501/M502 See https://github.com/MarlinFirmware/Marlin/issues/11103#issuecomment-421387611 Co-Authored-By: tcm0116 --- Marlin/src/module/stepper_indirection.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Marlin/src/module/stepper_indirection.cpp b/Marlin/src/module/stepper_indirection.cpp index abd28eb65a..89c4381ca4 100644 --- a/Marlin/src/module/stepper_indirection.cpp +++ b/Marlin/src/module/stepper_indirection.cpp @@ -35,6 +35,8 @@ #include "../inc/MarlinConfig.h" +#include "../module/stepper.h" + // // TMC26X Driver objects and inits // @@ -580,6 +582,7 @@ void reset_stepper_drivers() { #if HAS_DRIVER(L6470) L6470_init_to_defaults(); #endif + stepper.set_directions(); } //