diff --git a/motor.cpp b/motor.cpp index 7461c42054ca7b4ac106e5db73d1e7ec6c26a261..f3a00d7f8ef877b0e1cbf96aeb18a50d06c2db18 100644 --- a/motor.cpp +++ b/motor.cpp @@ -255,7 +255,7 @@ bool Motor :: motor_is_running () //return true if the motor is currently runni -Action : / ***/ { - return (stepper.speed() != 0); + return stepper.isRunning(); }