Fix inverted condition (kudos to @leptun)

pull/135/head
D.R.racer 2021-11-03 09:22:53 +01:00 committed by DRracer
parent fa4e687fdc
commit 2640e9d899
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 },