From 18ba6c80d49fbd663f13b594dc84b1a9b3e20a79 Mon Sep 17 00:00:00 2001 From: Malaurie Bernard <mbernard@kinouby> Date: Tue, 8 Aug 2023 10:06:55 +0200 Subject: [PATCH] Change the methods motor_is_running from the class motor --- motor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motor.cpp b/motor.cpp index 7461c42..f3a00d7 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(); } -- GitLab