浏览代码

Fix invalid bool compare.

FormerLurker 4 年之前
父节点
当前提交
3880777691
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Firmware/motion_control.cpp

+ 1 - 1
Firmware/motion_control.cpp

@@ -132,7 +132,7 @@ void mc_arc(float* position, float* target, float* offset, float feed_rate, floa
         float cos_T;
         float sin_T;
 
-        if (correction_enabled > 1){
+        if (correction_enabled){
             float sq_theta_per_segment = theta_per_segment * theta_per_segment;
             // Small angle approximation
             sin_T = theta_per_segment - sq_theta_per_segment * theta_per_segment / 6,