Browse Source

Use 'friend' to access set_directions

Scott Lahteine 6 years ago
parent
commit
215eee4fe5
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/src/module/stepper.h

+ 5
- 1
Marlin/src/module/stepper.h View File

466
       #endif
466
       #endif
467
     }
467
     }
468
 
468
 
469
+  private:
470
+
469
     // Set direction bits for all steppers
471
     // Set direction bits for all steppers
470
     static void set_directions();
472
     static void set_directions();
471
 
473
 
472
-  private:
474
+    // Allow reset_stepper_drivers to access private set_directions
475
+    friend void reset_stepper_drivers();
476
+
473
     // Set the current position in steps
477
     // Set the current position in steps
474
     static void _set_position(const int32_t &a, const int32_t &b, const int32_t &c, const int32_t &e);
478
     static void _set_position(const int32_t &a, const int32_t &b, const int32_t &c, const int32_t &e);
475
 
479
 

Loading…
Cancel
Save