From 0ffc87e3d7d4184c39942119aa38b0d44eaeae92 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Tue, 6 Aug 2013 11:39:40 +1000 Subject: [PATCH] Allow motor poll rates to be adjusted without an absolute encoder --- site_ansto/motor_dmc2280.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index 113d48d2..31a16287 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -4437,21 +4437,21 @@ static int DMC2280SetPar(void *pData, SConnection *pCon, self->bias_bits = newValue; return 1; } - if (self->abs_encoder && strcasecmp("motorPollFast", name) == 0) { + if (strcasecmp("motorPollFast", name) == 0) { /* Debug Managers only */ if (!(self->debug && SCMatchRights(pCon, usMugger))) return 0; self->motorPollFast = newValue; return 1; } - if (self->abs_encoder && strcasecmp("motorPollSlow", name) == 0) { + if (strcasecmp("motorPollSlow", name) == 0) { /* Debug Managers only */ if (!(self->debug && SCMatchRights(pCon, usMugger))) return 0; self->motorPollSlow = newValue; return 1; } - if (self->abs_encoder && strcasecmp("airPollTimer", name) == 0) { + if (strcasecmp("airPollTimer", name) == 0) { /* Debug Managers only */ if (!(self->debug && SCMatchRights(pCon, usMugger))) return 0;