diff options
author | kliment <kliment.yanev@gmail.com> | 2011-07-09 13:30:29 +0200 |
---|---|---|
committer | kliment <kliment.yanev@gmail.com> | 2011-07-09 13:30:29 +0200 |
commit | 66e75d6f6f39578d3cc44f0d3e945a16c2c2a40a (patch) | |
tree | 693a79b3f6e4f9e17571588171b9c25696262059 /Sprinter | |
parent | 8cb931a77591b6ac41f392515790b4abecab4f9c (diff) |
Factor away do_step_update_micros
Diffstat (limited to 'Sprinter')
-rw-r--r-- | Sprinter/Sprinter.pde | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |