Inverse the logic in the conditional that determines whether to continue
This commit is contained in:
parent
c0935ea3c7
commit
053512ab6a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue