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:
@ -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