From ca779ddc36283b42efb54140bb27fb405191c08c Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 11 Jul 2013 16:47:38 +1000 Subject: [PATCH] revert the one-shot change --- site_ansto/motor_dmc2280.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index a3c183df..cc67b4a9 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -2548,7 +2548,6 @@ static void DMCState_Moving(pDMC2280Driv self, pEvtEvent event) { SICSLogWrite(line, eStatus); } set_lastMotion(self, self->currSteps, self->currCounts); - self->preseek = 2; /* special one-shot */ absolute = motCreep(self, target); } } @@ -2588,8 +2587,6 @@ static void DMCState_Moving(pDMC2280Driv self, pEvtEvent event) { } cmdPosition(self, absolute); self->subState = 3; - if (self->preseek == 2) /* change of direction */ - self->preseek = 0; /* don't do it again */ return; } }