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.
This commit is contained in:
2025-05-16 15:50:26 +02:00
parent 61c5ec749e
commit 275672aaef

View File

@ -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();