Use 'friend' to access set_directions
This commit is contained in:
parent
ff51e7322d
commit
215eee4fe5
1 changed files with 5 additions and 1 deletions
|
@ -466,10 +466,14 @@ class Stepper {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
// Set direction bits for all steppers
|
// Set direction bits for all steppers
|
||||||
static void set_directions();
|
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
|
// 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);
|
static void _set_position(const int32_t &a, const int32_t &b, const int32_t &c, const int32_t &e);
|
||||||
|
|
||||||
|
|
Reference in a new issue