mirror of https://github.com/Desuuuu/klipper.git
bed_mesh: Fix integer division issue on Python3
Reported by @CODeRUS. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
2e17519a7e
commit
1c594ef27a
|
@ -316,7 +316,7 @@ class BedMeshCalibrate:
|
||||||
if self.radius is not None:
|
if self.radius is not None:
|
||||||
# round bed, min/max needs to be recalculated
|
# round bed, min/max needs to be recalculated
|
||||||
y_dist = x_dist
|
y_dist = x_dist
|
||||||
new_r = (x_cnt / 2) * x_dist
|
new_r = (x_cnt // 2) * x_dist
|
||||||
min_x = min_y = -new_r
|
min_x = min_y = -new_r
|
||||||
max_x = max_y = new_r
|
max_x = max_y = new_r
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue