Browse Source

Fix plan_arc clockwise (G2)

Fix #9482
pull/1/head
Scott Lahteine 7 years ago
parent
commit
377108619b
  1. 2
      Marlin/src/gcode/motion/G2_G3.cpp

2
Marlin/src/gcode/motion/G2_G3.cpp

@ -87,7 +87,7 @@ void plan_arc(
angular_travel = RADIANS(360);
const float flat_mm = radius * angular_travel,
mm_of_travel = linear_travel ? HYPOT(flat_mm, linear_travel) : flat_mm;
mm_of_travel = linear_travel ? HYPOT(flat_mm, linear_travel) : FABS(flat_mm);
if (mm_of_travel < 0.001) return;
uint16_t segments = FLOOR(mm_of_travel / (MM_PER_ARC_SEGMENT));

Loading…
Cancel
Save