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:
Kevin O'Connor 2022-02-10 14:09:15 -05:00
parent 2e17519a7e
commit 1c594ef27a
1 changed files with 1 additions and 1 deletions

View File

@ -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: