From cd72901fb7e27e14e9c920cbb574b702d6587347 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 30 Apr 2017 16:10:02 -0500 Subject: [PATCH] Cleanups to UBL code --- Marlin/ubl_motion.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Marlin/ubl_motion.cpp b/Marlin/ubl_motion.cpp index 3bc74585a1..0197f4d35e 100755 --- a/Marlin/ubl_motion.cpp +++ b/Marlin/ubl_motion.cpp @@ -250,10 +250,8 @@ const float m = dy / dx, c = start[Y_AXIS] - m * start[X_AXIS]; - bool inf_normalized_flag, inf_m_flag; - - inf_normalized_flag = isinf(e_normalized_dist); - inf_m_flag = isinf(m); + const bool inf_normalized_flag = isinf(e_normalized_dist), + inf_m_flag = isinf(m); /** * This block handles vertical lines. These are lines that stay within the same