Skip to content
Snippets Groups Projects
Commit 37710861 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Fix plan_arc clockwise (G2)

Fix #9482
parent 47e56afe
Branches
Tags
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment