From 2640e9d899bc64578fd19988824cae7a306c5250 Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Wed, 3 Nov 2021 09:22:53 +0100 Subject: [PATCH] Fix inverted condition (kudos to @leptun) --- src/modules/motion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/motion.h b/src/modules/motion.h index b81086e..3448c92 100644 --- a/src/modules/motion.h +++ b/src/modules/motion.h @@ -170,7 +170,7 @@ public: constexpr void PlanLongMove(config::Unit delta, config::Unit feed_rate, config::Unit end_rate = { 0 }) { auto steps = unitToAxisUnit>(delta); - if (steps.v < 0) { + if (steps.v >= 0) { while (steps.v > 32767) { PlanMove( { 32767 },