pimoroni / bme680-python

Python library for the BME680 gas, temperature, humidity and pressure sensor.
https://shop.pimoroni.com/products/bme680
MIT License
260 stars 93 forks source link

Fix Python 3 TypeError crashes by using floor division explicitly #4

Closed davea closed 6 years ago

davea commented 6 years ago

The / operator in Python 3 returns a float, which was causing TypeErrors when being passed to the << or >> operators.

Gadgetoid commented 6 years ago

Thank you! The change was a little rushed out to see if the upstream bug fixed solved #3 - the jury's still out on that one, though.