diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index 887e9b36..26b688b2 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -681,7 +681,7 @@ static int motCreep(pDMC2280Driv self, double target) { * we have to "single step" otherwise we want to go half way */ if (offset <= fabs(self->stepsPerX / self->cntsPerX)) { - offset = offset / DECADIC_CREEP; + offset = fabs(self->stepsPerX / self->cntsPerX) / DECADIC_CREEP; if (offset < 1) offset = 1; } else {