Merge pull request #171 from kliment/master
additional dropsegments test
This commit is contained in:
commit
c17bbb3296
1 changed files with 1 additions and 1 deletions
|
|
@ -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]));
|
||||
|
|
|
|||
Loading…
Reference in a new issue