From 61f3051982afc8c65b8019407ae7615184e9c7e8 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 11 Feb 2018 03:28:07 -0600 Subject: [PATCH] Fix plan_arc clockwise (G2) Fix #9482 --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 5400e1db9d..9dddbb37b2 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -12952,7 +12952,7 @@ void prepare_move_to_destination() { 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));