From ff51e7322d76c37ebefbbde98d11c6a837a5efbd Mon Sep 17 00:00:00 2001 From: Cassiano Leal Date: Sun, 16 Sep 2018 01:31:51 +0100 Subject: [PATCH] Fix for Stepper::set_directions() compilation error (#11838) --- Marlin/src/module/stepper.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Marlin/src/module/stepper.h b/Marlin/src/module/stepper.h index bc1b9e8045..107147933b 100644 --- a/Marlin/src/module/stepper.h +++ b/Marlin/src/module/stepper.h @@ -466,14 +466,13 @@ class Stepper { #endif } - private: - - // Set the current position in steps - static void _set_position(const int32_t &a, const int32_t &b, const int32_t &c, const int32_t &e); - // Set direction bits for all steppers static void set_directions(); + private: + // Set the current position in steps + static void _set_position(const int32_t &a, const int32_t &b, const int32_t &c, const int32_t &e); + FORCE_INLINE static uint32_t calc_timer_interval(uint32_t step_rate, uint8_t scale, uint8_t* loops) { uint32_t timer;