catdog2 / mpy_bme280_esp8266

Driver for the Bosch BME280 for use with MicroPython on ESP8266 boards
73 stars 41 forks source link

fix bits shifted in the wrong direction in pressure calculation #3

Closed johnmccombs closed 7 years ago

johnmccombs commented 8 years ago

The pressure calculation was giving poor results in comparison to other barometers. Looks like the cause is in the calculation in line 162, >>12 should be << 12.