summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-07-24 21:47:58 +0200
committerkliment <kliment.yanev@gmail.com>2011-07-24 21:47:58 +0200
commit4c385a2f5d0cdb375bed7f095dbc3382cc8b66f2 (patch)
tree1bf78483d783f8188fd5b67caaab3ad2f9ceaf4c
parent288dc6af49018579d073fe5b0ff7fffd14c5d7e8 (diff)
parentedb91dd6fa7eac120251e5e45a40c19b9c429bcb (diff)
Merge branch 'experimental'
-rw-r--r--Sprinter/Sprinter.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index dc26b1c..dde302c 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -1116,7 +1116,7 @@ inline void linear_move(unsigned long axis_steps_remaining[]) // make linear mov
if(axis_steps_remaining[i] >0) {
// multiplying slowest_start_axis_max_interval by axis_steps_remaining[slowest_start_axis]
// could lead to overflows when we have long distance moves (say, 390625*390625 > sizeof(unsigned long))
- float steps_remaining_ratio = axis_steps_remaining[slowest_start_axis] / axis_steps_remaining[i];
+ float steps_remaining_ratio = (float) axis_steps_remaining[slowest_start_axis] / axis_steps_remaining[i];
new_axis_max_intervals[i] = slowest_start_axis_max_interval * steps_remaining_ratio;
if(i == primary_axis) {