diff --git a/acsApp/src/drvMCB4B.cc b/acsApp/src/drvMCB4B.cc index 01ec75c..60ba4f6 100644 --- a/acsApp/src/drvMCB4B.cc +++ b/acsApp/src/drvMCB4B.cc @@ -10,6 +10,7 @@ * .01 02-24-2002 mlr initialized from drvPM304.c * .02 07-03-2002 rls replaced RA_OVERTRAVEL with RA_PLUS_LS and RA_MINUS_LS * .03 05-23-2003 rls Converted to R3.14.x. + * .04 02-03-2004 rls Eliminate erroneous "Motor motion timeout ERROR". */ @@ -229,7 +230,10 @@ STATIC int set_status(int card, int signal) motorData = atoi(&response[5]); if (motorData == motor_info->position) - motor_info->no_motion_count++; + { + if (nodeptr != 0) /* Increment counter only if motor is moving. */ + motor_info->no_motion_count++; + } else { status.Bits.RA_DIRECTION = (motorData >= motor_info->position) ? 1 : 0;