Erik van der Zalm 13 лет назад
Родитель
Сommit
46feae79c6
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      Marlin/motion_control.cpp

+ 1
- 1
Marlin/motion_control.cpp Просмотреть файл

@@ -47,7 +47,7 @@ void mc_arc(float *position, float *target, float *offset, uint8_t axis_0, uint8
47 47
   float millimeters_of_travel = hypot(angular_travel*radius, fabs(linear_travel));
48 48
   if (millimeters_of_travel < 0.001) { return; }
49 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 53
     // Multiply inverse feed_rate to compensate for the fact that this movement is approximated

Загрузка…
Отмена
Сохранить