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:
1 parent
61c5ec749e
commit
275672aaef
1 file changed
+1
-9
+1
-9
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user