summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidopple <mdoppler@gmx.at>2012-05-17 10:39:20 -0700
committermidopple <mdoppler@gmx.at>2012-05-17 10:39:20 -0700
commitc17bbb3296e562c48d2f8182c1b0e1669299d0ad (patch)
tree834ff9183d8a1d5c81f595e3ae42d5b1335e5d5f
parentaf7ebae0f8aae444d78a4630fcd5a48b3225f2fd (diff)
parent18ad4ffc0e6b446e3475109089e6a0c9a75e2fab (diff)
Merge pull request #171 from kliment/master
additional dropsegments test
-rw-r--r--Sprinter/Sprinter.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index e3c146c..8801973 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -2540,7 +2540,7 @@ void plan_buffer_line(float x, float y, float z, float e, float feed_rate)
//delta_mm[E_AXIS] = (target[E_AXIS]-position[E_AXIS])/axis_steps_per_unit[E_AXIS];
delta_mm[E_AXIS] = ((target[E_AXIS]-position[E_AXIS])/axis_steps_per_unit[E_AXIS])*extrudemultiply/100.0;
- if ( block->steps_x == 0 && block->steps_y == 0 && block->steps_z == 0 ) {
+ if ( block->steps_x <= dropsegments && block->steps_y <= dropsegments && block->steps_z <= dropsegments ) {
block->millimeters = fabs(delta_mm[E_AXIS]);
} else {
block->millimeters = sqrt(square(delta_mm[X_AXIS]) + square(delta_mm[Y_AXIS]) + square(delta_mm[Z_AXIS]));