Make either x steps or y steps remaining shortcut the loop
This commit is contained in:
parent
053512ab6a
commit
86f43686c8
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue