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;
|
asynStatus pl_status = asynSuccess;
|
||||||
|
|
||||||
bool moving = false;
|
bool moving = false;
|
||||||
rw_status = doPoll(&moving);
|
doPoll(&moving);
|
||||||
if (rw_status != asynSuccess) {
|
|
||||||
return rw_status;
|
|
||||||
}
|
|
||||||
|
|
||||||
// =========================================================================
|
// =========================================================================
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user