Explorar el Código

Use 'friend' to access set_directions

Scott Lahteine hace 6 años
padre
commit
215eee4fe5
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5
    1
      Marlin/src/module/stepper.h

+ 5
- 1
Marlin/src/module/stepper.h Ver fichero

@@ -466,10 +466,14 @@ class Stepper {
466 466
       #endif
467 467
     }
468 468
 
469
+  private:
470
+
469 471
     // Set direction bits for all steppers
470 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 477
     // Set the current position in steps
474 478
     static void _set_position(const int32_t &a, const int32_t &b, const int32_t &c, const int32_t &e);
475 479
 

Loading…
Cancelar
Guardar