From 6ec0bada6c713f4080f0f4ae7bd67259b0f1651e Mon Sep 17 00:00:00 2001 From: kliment Date: Thu, 14 Apr 2011 08:18:28 +0200 Subject: Fix interval calculation (thanks to BenJackson) --- Tonokip_Firmware/Tonokip_Firmware.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tonokip_Firmware') diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index 487ddbe..cdd0294 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -798,7 +798,7 @@ void linear_move(unsigned long x_steps_remaining, unsigned long y_steps_remainin } acceleration_enabled = true; if(full_velocity_steps == 0) full_velocity_steps++; - long full_interval = max(interval, max_interval - ((max_interval - full_interval) * full_velocity_steps / virtual_full_velocity_steps)); + long full_interval = interval;//max(interval, max_interval - ((max_interval - full_interval) * full_velocity_steps / virtual_full_velocity_steps)); if(interval > max_interval) acceleration_enabled = false; unsigned long steps_done = 0; unsigned int steps_acceleration_check = 1; -- cgit v1.2.1