Remove some obsolete and inactive code

This commit is contained in:
Douglas Clowes
2013-07-11 17:03:17 +10:00
parent 746f43ccb8
commit 6187cb3d15

View File

@@ -647,7 +647,6 @@ static int motCreep(pDMC2280Driv self, double target) {
* Only move if offset is outside of the creep_precision in steps
*/
if (offset > fabs(self->stepsPerX * self->creep_precision)) {
#ifdef DECADIC_CREEP
/*
* if the offset is more than double the creep_offset the we just
* warp to the target minus the creep_offset
@@ -667,16 +666,6 @@ static int motCreep(pDMC2280Driv self, double target) {
offset = offset / 2;
}
}
#else
if (offset - (int) fabs(self->stepsPerX * self->creep_offset) > (int) fabs(self->stepsPerX / self->cntsPerX))
offset = offset - fabs(self->stepsPerX * self->creep_offset);
else {
if (offset <= fabs(self->stepsPerX / self->cntsPerX))
offset = 1;
else
offset = offset / 2;
}
#endif
/*
* Since we want to move, set preseek to flag it to the caller
*/