From 388077769177aeed37cf7fd78fbba23a7a921543 Mon Sep 17 00:00:00 2001 From: FormerLurker Date: Tue, 12 Jan 2021 16:41:23 -0600 Subject: [PATCH] Fix invalid bool compare. --- Firmware/motion_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/motion_control.cpp b/Firmware/motion_control.cpp index 28e803a25..cc2cabd50 100644 --- a/Firmware/motion_control.cpp +++ b/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,