In the status updates, removed the check for not needUpdate before processing the record. This fixes the odd state that motors sometimes get into at startup after having the values written down to the controller, where they do not update their positions, even if the underlying axis moves, unless they are processed first.

This commit is contained in:
mp49
2008-11-14 15:18:38 +00:00
parent 45dbd60c84
commit f8afb15c7d
+4 -4
View File
@@ -11,9 +11,9 @@
* Notwithstanding the above, explicit permission is granted for APS to
* redistribute this software.
*
* Version: $Revision: 1.24 $
* Modified by: $Author: sluiter $
* Last Modified: $Date: 2008-06-04 21:56:30 $
* Version: $Revision: 1.25 $
* Modified by: $Author: mp49 $
* Last Modified: $Date: 2008-11-14 15:18:38 $
*
* Original Author: Peter Denison
* Current Author: Peter Denison
@@ -566,7 +566,7 @@ static void statusCallback(void *drvPvt, asynUser *pasynUser,
if (dbScanLockOK) {
dbScanLock((dbCommon *)pmr);
memcpy(&pPvt->status, value, sizeof(struct MotorStatus));
if (!pPvt->needUpdate && !pPvt->moveRequestPending) {
if (!pPvt->moveRequestPending) {
pPvt->needUpdate = 1;
pmr->rset->process((dbCommon*)pmr);
}