diff --git a/spindle_control.c b/spindle_control.c index 34d559b..0321c89 100644 --- a/spindle_control.c +++ b/spindle_control.c @@ -36,12 +36,16 @@ void spindle_run(int direction, uint32_t rpm) { if (direction != current_direction) { st_synchronize(); - if(direction >= 0) { - SPINDLE_DIRECTION_PORT &= ~(1< 0) { + SPINDLE_DIRECTION_PORT &= ~(1<