From 26bc3df8768baf72014b68a37fc1d06422423edb Mon Sep 17 00:00:00 2001 From: smathis Date: Mon, 12 May 2025 16:19:34 +0200 Subject: [PATCH] Fixed bug where the motor could be in state -6 and the driver would interpret this as "not moving" --- src/turboPmacAxis.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/turboPmacAxis.cpp b/src/turboPmacAxis.cpp index 20446da..9e631d5 100644 --- a/src/turboPmacAxis.cpp +++ b/src/turboPmacAxis.cpp @@ -392,13 +392,7 @@ asynStatus turboPmacAxis::doPoll(bool *moving) { switch (axStatus) { case -6: // Axis is stopping - - // If the axis was already idle during the last poll, it is not moving - if (previousStatusDone == 0) { - *moving = true; - } else { - *moving = false; - } + *moving = true; break; case -5: // Axis is deactivated