From 7a0de4e9d95423907f9ff8e5dc0a2c661e68f557 Mon Sep 17 00:00:00 2001 From: smathis Date: Thu, 14 Aug 2025 17:12:17 +0200 Subject: [PATCH] Perform callParamCallbacks even if movement watchdog timed out --- src/sinqAxis.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sinqAxis.cpp b/src/sinqAxis.cpp index 92945a0..e936648 100644 --- a/src/sinqAxis.cpp +++ b/src/sinqAxis.cpp @@ -283,9 +283,12 @@ asynStatus sinqAxis::forcedPoll(bool *moving) { pSinqA_->wasMoving = *moving; } - // Check and update the watchdog - if (checkMovTimeoutWatchdog(*moving) != asynSuccess) { - return asynError; + // Check and update the watchdog as well as the general poll status IF the + // poll did not fail already. + if (poll_status == asynSuccess) { + if (checkMovTimeoutWatchdog(*moving) != asynSuccess) { + poll_status = asynError; + } } // According to the function documentation of asynMotorAxis::poll, this