diff --git a/spindle_control.c b/spindle_control.c index 0dc48c8..548e477 100644 --- a/spindle_control.c +++ b/spindle_control.c @@ -21,6 +21,7 @@ #include "spindle_control.h" #include "settings.h" #include "config.h" +#include "stepper.h" #include @@ -31,6 +32,7 @@ void spindle_init() void spindle_run(int direction, uint32_t rpm) { + st_synchronize(); if(direction >= 0) { SPINDLE_DIRECTION_PORT &= ~(1<