Eliminate erroneous "Motor motion timeout ERROR".

This commit is contained in:
Ron Sluiter
2004-02-03 19:53:04 +00:00
parent d82cc7926f
commit 8e2954eea7

View File

@@ -10,6 +10,7 @@
* .01 02-24-2002 mlr initialized from drvPM304.c * .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 * .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. * .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]); motorData = atoi(&response[5]);
if (motorData == motor_info->position) if (motorData == motor_info->position)
{
if (nodeptr != 0) /* Increment counter only if motor is moving. */
motor_info->no_motion_count++; motor_info->no_motion_count++;
}
else else
{ {
status.Bits.RA_DIRECTION = (motorData >= motor_info->position) ? 1 : 0; status.Bits.RA_DIRECTION = (motorData >= motor_info->position) ? 1 : 0;