Allow enabling / disabling the motor regardless of the status returned by the poll
This commit is contained in:
@ -1284,10 +1284,7 @@ asynStatus turboPmacAxis::enable(bool on) {
|
||||
asynStatus pl_status = asynSuccess;
|
||||
|
||||
bool moving = false;
|
||||
rw_status = doPoll(&moving);
|
||||
if (rw_status != asynSuccess) {
|
||||
return rw_status;
|
||||
}
|
||||
doPoll(&moving);
|
||||
|
||||
// =========================================================================
|
||||
|
||||
|
Reference in New Issue
Block a user