From 275672aaef41aba2ec425d79f8bbb65d5f18f80c Mon Sep 17 00:00:00 2001 From: smathis Date: Fri, 16 May 2025 15:50:26 +0200 Subject: [PATCH] Removed lock in reset and replaced it with wakeupPoller call Trying to lock the controller from one of its axes may lead to segfaults, hence it is not advisable. --- src/sinqAxis.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/sinqAxis.cpp b/src/sinqAxis.cpp index 7cd70b6..ca81331 100644 --- a/src/sinqAxis.cpp +++ b/src/sinqAxis.cpp @@ -543,15 +543,7 @@ asynStatus sinqAxis::reset() { if (status == asynSuccess) { // Perform some fast polls - pC_->lock(); - bool moving = false; - for (int i = 0; i < 5; i++) { - epicsThreadSleep(pC_->movingPollPeriod()); - if (poll(&moving) == asynSuccess) { - break; - } - } - pC_->unlock(); + pC_->wakeupPoller(); } status = assertConnected();