From 54646c77dc1b659614e9a8e27909da4b08ac8cee Mon Sep 17 00:00:00 2001 From: cbc02009 <39525900+cbc02009@users.noreply.github.com> Date: Sun, 6 Feb 2022 12:15:35 -0500 Subject: [PATCH] bme280: fix integer handling for python3 in bme280.py (#5237) Singed-off-by: Christopher Conroy --- klippy/extras/bme280.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/bme280.py b/klippy/extras/bme280.py index f6a17179..0cd9f392 100644 --- a/klippy/extras/bme280.py +++ b/klippy/extras/bme280.py @@ -437,7 +437,7 @@ class BME280: else: factor = 0 while duration_ms > 0x3F: - duration_ms /= 4 + duration_ms //= 4 factor += 1 duration_reg = duration_ms + (factor * 64)