summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-05-14 23:54:18 +0200
committerkliment <kliment.yanev@gmail.com>2011-05-14 23:54:18 +0200
commit053512ab6ad3dbe4708c9f031f6f40d8df1859ee (patch)
treed5af0722e0c2f92b5d9de2c1ef2d78a6977451f1
parentc0935ea3c7430cf77384ed6236d41e94b2adc3a0 (diff)
Inverse the logic in the conditional that determines whether to continue
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index 937de99..8ae65da 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -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