From 66e75d6f6f39578d3cc44f0d3e945a16c2c2a40a Mon Sep 17 00:00:00 2001 From: kliment Date: Sat, 9 Jul 2011 13:30:29 +0200 Subject: Factor away do_step_update_micros --- Sprinter/Sprinter.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Sprinter') diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde index 0994329..d10e1e4 100644 --- a/Sprinter/Sprinter.pde +++ b/Sprinter/Sprinter.pde @@ -1195,7 +1195,8 @@ void linear_move(unsigned long axis_steps_remaining[]) // make linear move with steps_done++; steps_remaining--; axis_steps_remaining[primary_axis]--; timediff -= interval; - do_step_update_micros(primary_axis); + do_step(primary_axis); + axis_previous_micros[primary_axis] += interval; for(int i=0; i < NUM_AXIS; i++) if(i != primary_axis && axis_steps_remaining[i] > 0) { axis_error[i] = axis_error[i] - delta[i]; if(axis_error[i] < 0) { -- cgit v1.2.1