don't step unless next move is processed
authorJim Morris <morris@wolfman.com>
Sat, 29 Nov 2014 22:26:37 +0000 (14:26 -0800)
committerJim Morris <morris@wolfman.com>
Sat, 29 Nov 2014 22:26:37 +0000 (14:26 -0800)
src/libs/StepperMotor.cpp

index 8a49e29..24bb0e6 100644 (file)
@@ -61,7 +61,7 @@ void StepperMotor::init()
 void StepperMotor::step()
 {
     // we can't do anything until the next move has been processed, but we will be able to offset the time by shortening the next step
-    if(THEKERNEL->step_ticker->a_move_finished) return;
+    if(this->is_move_finished) return;
 
     // output to pins 37t
     this->step_pin.set( 1 );