From 7363a846e17571e861762f44a439d4ed1849dad3 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Tue, 10 Apr 2007 10:17:01 +1000 Subject: [PATCH] motion is OK if motor has no absolute encoder r1844 | dcl | 2007-04-10 10:17:01 +1000 (Tue, 10 Apr 2007) | 2 lines --- site_ansto/motor_dmc2280.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index d68db4b3..6019a832 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -994,6 +994,9 @@ static int checkMotion(void *pData) { pDMC2280Driv self; self = (pDMC2280Driv)pData; assert(self != NULL); + /* we can only test if there is an absolute encoder */ + if (!self->abs_endcoder) + return 1; if (self->time_lastPos_set.tv_sec == 0) { /* first time - initialise the data */ if (FAILURE == readMotion(self, &steps, &counts))