瀏覽代碼

Use RECIPROCAL macro (not _RECIP) (#16530)

Ryan V1 4 年之前
父節點
當前提交
56e51efeea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/gcode/motion/G2_G3.cpp

+ 1
- 1
Marlin/src/gcode/motion/G2_G3.cpp 查看文件

@@ -106,7 +106,7 @@ void plan_arc(
106 106
   const feedRate_t scaled_fr_mm_s = MMS_SCALED(feedrate_mm_s);
107 107
 
108 108
   #ifdef ARC_SEGMENTS_PER_SEC
109
-    float seg_length = scaled_fr_mm_s * _RECIP(ARC_SEGMENTS_PER_SEC);
109
+    float seg_length = scaled_fr_mm_s * RECIPROCAL(ARC_SEGMENTS_PER_SEC);
110 110
     NOLESS(seg_length, MM_PER_ARC_SEGMENT);
111 111
   #else
112 112
     constexpr float seg_length = MM_PER_ARC_SEGMENT;

Loading…
取消
儲存