From 23ea53a4f50ca07b7338b005df10b10572a3abe7 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Tue, 12 Feb 2002 17:46:10 +0000 Subject: [PATCH] CDIR must be based on RDIF. Bug fix for when MRES < 0. --- motorApp/MotorSrc/motorRecord.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/motorApp/MotorSrc/motorRecord.c b/motorApp/MotorSrc/motorRecord.c index 16290aca..58bdb4c9 100644 --- a/motorApp/MotorSrc/motorRecord.c +++ b/motorApp/MotorSrc/motorRecord.c @@ -2,9 +2,9 @@ FILENAME... motorRecord.c USAGE... Motor Record Support. -Version: $Revision: 1.15 $ +Version: $Revision: 1.16 $ Modified By: $Author: sluiter $ -Last Modified: $Date: 2002-02-06 17:43:35 $ +Last Modified: $Date: 2002-02-12 17:46:10 $ */ /* @@ -2129,7 +2129,7 @@ STATIC long do_work(motorRecord * pmr) } WRITE_MSG(GO, NULL); } - pmr->cdir = (pmr->diff >= 0.0) ? 0 : 1; + pmr->cdir = (pmr->rdif >= 0.0) ? 0 : 1; SEND_MSG(); } }