소스 검색

Corrected e-length calculation in planner

Erik van der Zalm 12 년 전
부모
커밋
b58eae7657
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/planner.cpp

+ 1
- 1
Marlin/planner.cpp 파일 보기

@@ -518,7 +518,7 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
518 518
   delta_mm[Z_AXIS] = (target[Z_AXIS]-position[Z_AXIS])/axis_steps_per_unit[Z_AXIS];
519 519
   delta_mm[E_AXIS] = (target[E_AXIS]-position[E_AXIS])/axis_steps_per_unit[E_AXIS];
520 520
   if ( block->steps_x == 0 && block->steps_y == 0 && block->steps_z == 0 ) {
521
-    block->millimeters = delta_mm[E_AXIS];
521
+    block->millimeters = abs(delta_mm[E_AXIS]);
522 522
   } else {
523 523
     block->millimeters = sqrt(square(delta_mm[X_AXIS]) + square(delta_mm[Y_AXIS]) + square(delta_mm[Z_AXIS]));
524 524
   }

Loading…
취소
저장