Browse Source

Changed check i mtion_conrol

if (millimeters_of_travel == 0.0) => if (millimeters_of_travel < 0.001)
(thanks mooselake)
Erik van der Zalm 12 years ago
parent
commit
d47a3e5950
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/motion_control.cpp

+ 1
- 1
Marlin/motion_control.cpp View File

@@ -45,7 +45,7 @@ void mc_arc(float *position, float *target, float *offset, uint8_t axis_0, uint8
45 45
   if (isclockwise) { angular_travel -= 2*M_PI; }
46 46
   
47 47
   float millimeters_of_travel = hypot(angular_travel*radius, fabs(linear_travel));
48
-  if (millimeters_of_travel == 0.0) { return; }
48
+  if (millimeters_of_travel < 0.001) { return; }
49 49
   uint16_t segments = floor(millimeters_of_travel/MM_PER_ARC_SEGMENT);
50 50
   /*  
51 51
     // Multiply inverse feed_rate to compensate for the fact that this movement is approximated

Loading…
Cancel
Save