Inverse the logic in the conditional that determines whether to continue

This commit is contained in:
kliment 2011-05-14 23:54:18 +02:00
parent c0935ea3c7
commit 053512ab6a

View file

@ -1186,8 +1186,8 @@ void linear_move(unsigned long x_steps_remaining, unsigned long y_steps_remainin
}
}
#ifdef RAMP_ACCELERATION
if(x_steps_remaining==0 &&
y_steps_remaining==0 &&
if(x_steps_remaining>0 &&
y_steps_remaining>0 &&
steps_to_take > 0 &&
(steps_remaining == plateau_steps || (steps_done >= steps_to_take / 2 && accelerating && !decelerating))) continue;
#endif