From 215eee4fe58c7cb6d61f496a9c27194865fb7317 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 15 Sep 2018 20:11:10 -0500 Subject: [PATCH] Use 'friend' to access set_directions --- Marlin/src/module/stepper.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Marlin/src/module/stepper.h b/Marlin/src/module/stepper.h index 107147933b..4577b96f2f 100644 --- a/Marlin/src/module/stepper.h +++ b/Marlin/src/module/stepper.h @@ -466,10 +466,14 @@ class Stepper { #endif } + private: + // Set direction bits for all steppers static void set_directions(); - private: + // Allow reset_stepper_drivers to access private set_directions + friend void reset_stepper_drivers(); + // 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);