Skip to content

Commit

Permalink
Fix moving bit in ecmcMotorRecordAxis::poll(*moving)
Browse files Browse the repository at this point in the history
  • Loading branch information
anderssandstrom committed Aug 27, 2020
1 parent caca2b1 commit 0085956
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 0085956

Please sign in to comment.