From 00859561fc47469e3e4da36199b927b46e814e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Thu, 27 Aug 2020 12:06:31 +0200 Subject: [PATCH] Fix moving bit in ecmcMotorRecordAxis::poll(*moving) --- devEcmcSup/motor/ecmcMotorRecordAxis.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devEcmcSup/motor/ecmcMotorRecordAxis.cpp b/devEcmcSup/motor/ecmcMotorRecordAxis.cpp index 60a44ecb..527e9ea2 100644 --- a/devEcmcSup/motor/ecmcMotorRecordAxis.cpp +++ b/devEcmcSup/motor/ecmcMotorRecordAxis.cpp @@ -992,8 +992,11 @@ asynStatus ecmcMotorRecordAxis::poll(bool *moving) if (drvlocal.waitNumPollsBeforeReady) { *moving = true; } + else #endif - +{ + *moving = drvlocal.moveNotReadyNext ? true : false; +} if (drvlocal.moveNotReadyNext){ drvlocal.nCommandActive = drvlocal.statusBinData.onChangeData.command; }