Use RECIPROCAL macro (not _RECIP) (#16530)

2.0.x
Ryan V1 5 years ago committed by Scott Lahteine
parent d22eb261cf
commit 56e51efeea

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

Loading…
Cancel
Save