Fix inverted condition (kudos to @leptun)
parent
fa4e687fdc
commit
2640e9d899
|
|
@ -170,7 +170,7 @@ public:
|
||||||
constexpr void PlanLongMove(config::Unit<long double, B, Lenght> delta,
|
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 }) {
|
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);
|
auto steps = unitToAxisUnit<AxisUnit<pos_t, A, Lenght>>(delta);
|
||||||
if (steps.v < 0) {
|
if (steps.v >= 0) {
|
||||||
while (steps.v > 32767) {
|
while (steps.v > 32767) {
|
||||||
PlanMove<A>(
|
PlanMove<A>(
|
||||||
{ 32767 },
|
{ 32767 },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue