revert the one-shot change

This commit is contained in:
Douglas Clowes
2013-07-11 16:47:38 +10:00
parent 61c11d5741
commit ca779ddc36

View File

@@ -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;
}
}