From ef9133d66a4c13f08dfddce0bae2f1f079ed8744 Mon Sep 17 00:00:00 2001 From: smathis Date: Tue, 13 May 2025 15:12:43 +0200 Subject: [PATCH] Allow enabling / disabling the motor regardless of the status returned by the poll --- src/turboPmacAxis.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/turboPmacAxis.cpp b/src/turboPmacAxis.cpp index c452688..9d7ebef 100644 --- a/src/turboPmacAxis.cpp +++ b/src/turboPmacAxis.cpp @@ -1284,10 +1284,7 @@ asynStatus turboPmacAxis::enable(bool on) { asynStatus pl_status = asynSuccess; bool moving = false; - rw_status = doPoll(&moving); - if (rw_status != asynSuccess) { - return rw_status; - } + doPoll(&moving); // =========================================================================