瀏覽代碼

Merge pull request #5037 from esenapaj/Fix-for-the-commit-dc2cb84

Fix for the commit dc2cb84 (Revert acceleration limiting to avoid overflow)
Roxy-3D 8 年之前
父節點
當前提交
8ddd039e68
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/planner.cpp

+ 2
- 2
Marlin/planner.cpp 查看文件

@@ -1021,8 +1021,8 @@ void Planner::_buffer_line(const float &a, const float &b, const float &c, const
1021 1021
   }
1022 1022
   else {
1023 1023
     #define LIMIT_ACCEL(AXIS) do{ \
1024
-      if (max_acceleration_steps_per_s2[AXIS] < (accel * block->steps[AXIS]) / block->step_event_count)
1025
-        accel = (max_acceleration_steps_per_s2[AXIS] * block->step_event_count) / block->steps[AXIS];
1024
+      if (max_acceleration_steps_per_s2[AXIS] < (accel * block->steps[AXIS]) / block->step_event_count) \
1025
+        accel = (max_acceleration_steps_per_s2[AXIS] * block->step_event_count) / block->steps[AXIS]; \
1026 1026
     }while(0)
1027 1027
 
1028 1028
     // Start with print or travel acceleration

Loading…
取消
儲存