Make either x steps or y steps remaining shortcut the loop

This commit is contained in:
kliment 2011-05-14 23:58:49 +02:00
parent 053512ab6a
commit 86f43686c8

View file

@ -1186,8 +1186,7 @@ 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