From f8afb15c7d220c7dd5451aae5964710ff11e3bb2 Mon Sep 17 00:00:00 2001 From: mp49 Date: Fri, 14 Nov 2008 15:18:38 +0000 Subject: [PATCH] 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. --- motorApp/MotorSrc/devMotorAsyn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/motorApp/MotorSrc/devMotorAsyn.c b/motorApp/MotorSrc/devMotorAsyn.c index 92772992..2a3f3fae 100644 --- a/motorApp/MotorSrc/devMotorAsyn.c +++ b/motorApp/MotorSrc/devMotorAsyn.c @@ -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); }