Quellcode durchsuchen

Use 'friend' to access set_directions

Scott Lahteine vor 6 Jahren
Ursprung
Commit
215eee4fe5
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5
    1
      Marlin/src/module/stepper.h

+ 5
- 1
Marlin/src/module/stepper.h Datei anzeigen

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
 

Laden…
Abbrechen
Speichern