Browse Source

add additional dropsegments test

Erik van der Zalm 13 years ago
parent
commit
ba96059203
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/planner.cpp

+ 1
- 1
Marlin/planner.cpp View File

@@ -554,7 +554,7 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
554 554
   delta_mm[Y_AXIS] = (target[Y_AXIS]-position[Y_AXIS])/axis_steps_per_unit[Y_AXIS];
555 555
   delta_mm[Z_AXIS] = (target[Z_AXIS]-position[Z_AXIS])/axis_steps_per_unit[Z_AXIS];
556 556
   delta_mm[E_AXIS] = ((target[E_AXIS]-position[E_AXIS])/axis_steps_per_unit[E_AXIS])*extrudemultiply/100.0;
557
-  if ( block->steps_x == 0 && block->steps_y == 0 && block->steps_z == 0 ) {
557
+  if ( block->steps_x <=dropsegments && block->steps_y <=dropsegments && block->steps_z <=dropsegments ) {
558 558
     block->millimeters = fabs(delta_mm[E_AXIS]);
559 559
   } else {
560 560
     block->millimeters = sqrt(square(delta_mm[X_AXIS]) + square(delta_mm[Y_AXIS]) + square(delta_mm[Z_AXIS]));

Loading…
Cancel
Save