Fix invalid bool compare.

This commit is contained in:
FormerLurker 2021-01-12 16:41:23 -06:00 committed by Alex Voinea
parent 6fc8155cbe
commit 3880777691
1 changed files with 1 additions and 1 deletions

View File

@ -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,