Fix inverted condition (kudos to @leptun)

pull/133/head
D.R.racer 2021-11-03 09:22:53 +01:00
parent 6cbfb65017
commit 75a4f62c5e
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ public:
constexpr void PlanLongMove(config::Unit<long double, B, Lenght> delta,
config::Unit<long double, B, Speed> feed_rate, config::Unit<long double, B, Speed> end_rate = { 0 }) {
auto steps = unitToAxisUnit<AxisUnit<pos_t, A, Lenght>>(delta);
if (steps.v < 0) {
if (steps.v >= 0) {
while (steps.v > 32767) {
PlanMove<A>(
{ 32767 },