From f4af420e22c9cd5e056ef6f8fc9d0e9d08c2d3ce Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Fri, 20 Oct 1995 20:21:32 +0000 Subject: [PATCH] Changes to make stop work --- src/rec/recSteppermotor.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rec/recSteppermotor.c b/src/rec/recSteppermotor.c index a7ebd9bfd..15ab66699 100644 --- a/src/rec/recSteppermotor.c +++ b/src/rec/recSteppermotor.c @@ -96,7 +96,6 @@ * .37 03-29-94 mcn converted to fast links * .38 09-27-95 lrd fix init to limit in overshoot check and retry * post monitors for mcw and mccw - * reprocess records if the setpoint changed while they were moving */ #include @@ -298,7 +297,7 @@ static long get_units(paddr,units) { struct steppermotorRecord *psm=(struct steppermotorRecord *)paddr->precord; - strncpy(units,psm->egu,sizeof(psm->egu)); + strncpy(units,psm->egu,DB_UNITS_SIZE); return(0); } @@ -596,8 +595,7 @@ struct steppermotorRecord *psm; } /* should we retry */ - if ((psm->rcnt < psm->rtry) || (psm->lval != psm->val)){ - psm->lval = psm->val; + if (psm->rcnt < psm->rtry){ /* convert */ temp = psm->val / psm->dist;