From 221237632afd17fade3ea29f918ca6fb74234928 Mon Sep 17 00:00:00 2001 From: David Buezas Date: Mon, 22 Dec 2025 08:23:36 +0100 Subject: [PATCH] Use != instead of < for alpha as it may be faster --- Marlin/src/module/ft_motion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/module/ft_motion.cpp b/Marlin/src/module/ft_motion.cpp index d5b9b213a0..f9b7c86998 100644 --- a/Marlin/src/module/ft_motion.cpp +++ b/Marlin/src/module/ft_motion.cpp @@ -525,7 +525,7 @@ xyze_float_t FTMotion::calc_traj_point(const float dist) { // Approximate Gaussian smoothing via chained EMAs auto _smoothen = [&](const AxisEnum axis, axis_smoothing_t &smoo) { - if (smoo.alpha < 1) { + if (smoo.alpha != 1.0f) { float smooth_val = traj_coords[axis]; for (uint8_t _i = 0; _i < FTM_SMOOTHING_ORDER; ++_i) { smoo.smoothing_pass[_i] += (smooth_val - smoo.smoothing_pass[_i]) * smoo.alpha;