Skip to content

Commit

Permalink
Merge pull request #34 from icshwi/anders_autoEnableDisable
Browse files Browse the repository at this point in the history
Fix moving bit in ecmcMotorRecordAxis::poll(*moving)
  • Loading branch information
anderssandstrom authored Aug 27, 2020
2 parents caca2b1 + 0085956 commit 44c6f62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devEcmcSup/motor/ecmcMotorRecordAxis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,11 @@ asynStatus ecmcMotorRecordAxis::poll(bool *moving)
if (drvlocal.waitNumPollsBeforeReady) {
*moving = true;
}
else
#endif

{
*moving = drvlocal.moveNotReadyNext ? true : false;
}
if (drvlocal.moveNotReadyNext){
drvlocal.nCommandActive = drvlocal.statusBinData.onChangeData.command;
}
Expand Down

0 comments on commit 44c6f62

Please sign in to comment.