Browse Source

Fixed typo in arc

Erik van der Zalm 13 years ago
parent
commit
46feae79c6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/motion_control.cpp

+ 1
- 1
Marlin/motion_control.cpp View File

47
   float millimeters_of_travel = hypot(angular_travel*radius, fabs(linear_travel));
47
   float millimeters_of_travel = hypot(angular_travel*radius, fabs(linear_travel));
48
   if (millimeters_of_travel < 0.001) { return; }
48
   if (millimeters_of_travel < 0.001) { return; }
49
   uint16_t segments = floor(millimeters_of_travel/MM_PER_ARC_SEGMENT);
49
   uint16_t segments = floor(millimeters_of_travel/MM_PER_ARC_SEGMENT);
50
-  if(segments = 0) segments = 1;
50
+  if(segments == 0) segments = 1;
51
   
51
   
52
   /*  
52
   /*  
53
     // Multiply inverse feed_rate to compensate for the fact that this movement is approximated
53
     // Multiply inverse feed_rate to compensate for the fact that this movement is approximated

Loading…
Cancel
Save