Remove some obsolete and inactive code
This commit is contained in:
@@ -647,7 +647,6 @@ static int motCreep(pDMC2280Driv self, double target) {
|
|||||||
* Only move if offset is outside of the creep_precision in steps
|
* Only move if offset is outside of the creep_precision in steps
|
||||||
*/
|
*/
|
||||||
if (offset > fabs(self->stepsPerX * self->creep_precision)) {
|
if (offset > fabs(self->stepsPerX * self->creep_precision)) {
|
||||||
#ifdef DECADIC_CREEP
|
|
||||||
/*
|
/*
|
||||||
* if the offset is more than double the creep_offset the we just
|
* if the offset is more than double the creep_offset the we just
|
||||||
* warp to the target minus the creep_offset
|
* warp to the target minus the creep_offset
|
||||||
@@ -667,16 +666,6 @@ static int motCreep(pDMC2280Driv self, double target) {
|
|||||||
offset = offset / 2;
|
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
|
* Since we want to move, set preseek to flag it to the caller
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user