From d21a791eae51d3b21f7537b643bf0743de7488f0 Mon Sep 17 00:00:00 2001 From: Simen Svale Skogsrud Date: Sat, 19 Feb 2011 21:04:40 +0100 Subject: [PATCH] spindle operations are now synchronized --- spindle_control.c | 3 +++ 1 file changed, 3 insertions(+) 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<