aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/bed_mesh.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-02-10 14:09:15 -0500
committerKevin O'Connor <kevin@koconnor.net>2022-02-10 14:09:15 -0500
commit1c594ef27a252a844c22cdbeffc839292155134a (patch)
tree118774e11e0e0d6a63b185a36d0b93d71c365a04 /klippy/extras/bed_mesh.py
parent2e17519a7efc225d699669ecfbd00d8cb6f10cae (diff)
downloadkutter-1c594ef27a252a844c22cdbeffc839292155134a.tar.gz
kutter-1c594ef27a252a844c22cdbeffc839292155134a.tar.xz
kutter-1c594ef27a252a844c22cdbeffc839292155134a.zip
bed_mesh: Fix integer division issue on Python3
Reported by @CODeRUS. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/bed_mesh.py')
-rw-r--r--klippy/extras/bed_mesh.py2
1 files changed, 1 insertions, 1 deletions
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: