From 053512ab6ad3dbe4708c9f031f6f40d8df1859ee Mon Sep 17 00:00:00 2001 From: kliment Date: Sat, 14 May 2011 23:54:18 +0200 Subject: Inverse the logic in the conditional that determines whether to continue --- Tonokip_Firmware/Tonokip_Firmware.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tonokip_Firmware') 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 -- cgit v1.2.1