mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-05 14:15:39 -05:00
Eliminate erroneous "Motor motion timeout ERROR".
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user