From 1c594ef27a252a844c22cdbeffc839292155134a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 10 Feb 2022 14:09:15 -0500 Subject: [PATCH] bed_mesh: Fix integer division issue on Python3 Reported by @CODeRUS. Signed-off-by: Kevin O'Connor --- klippy/extras/bed_mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/bed_mesh.py b/klippy/extras/bed_mesh.py index 24d190b4..85a318b1 100644 --- a/klippy/extras/bed_mesh.py +++ b/klippy/extras/bed_mesh.py @@ -316,7 +316,7 @@ class BedMeshCalibrate: if self.radius is not None: # round bed, min/max needs to be recalculated y_dist = x_dist - new_r = (x_cnt / 2) * x_dist + new_r = (x_cnt // 2) * x_dist min_x = min_y = -new_r max_x = max_y = new_r else: