From d47a3e5950ec8dc129c8939ae8a9acdf32580134 Mon Sep 17 00:00:00 2001 From: Erik van der Zalm Date: Thu, 9 Feb 2012 21:02:01 +0100 Subject: [PATCH] Changed check i mtion_conrol if (millimeters_of_travel == 0.0) => if (millimeters_of_travel < 0.001) (thanks mooselake) --- Marlin/motion_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/motion_control.cpp b/Marlin/motion_control.cpp index ab403e981..a24b2b782 100644 --- a/Marlin/motion_control.cpp +++ b/Marlin/motion_control.cpp @@ -45,7 +45,7 @@ void mc_arc(float *position, float *target, float *offset, uint8_t axis_0, uint8 if (isclockwise) { angular_travel -= 2*M_PI; } float millimeters_of_travel = hypot(angular_travel*radius, fabs(linear_travel)); - if (millimeters_of_travel == 0.0) { return; } + if (millimeters_of_travel < 0.001) { return; } uint16_t segments = floor(millimeters_of_travel/MM_PER_ARC_SEGMENT); /* // Multiply inverse feed_rate to compensate for the fact that this movement is approximated