bme280: fix integer handling for python3 in bme280.py (#5237)
Singed-off-by: Christopher Conroy <cbc02009@gmail.com>
This commit is contained in:
parent
0143199175
commit
54646c77dc
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue