We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ce3755 + e947bde commit 80fedb7Copy full SHA for 80fedb7
adafruit_bme280.py
@@ -198,7 +198,7 @@ def _read_coefficients(self):
198
self._humidity_calib[1] = float(coeff[0])
199
self._humidity_calib[2] = float(coeff[1])
200
self._humidity_calib[3] = float((coeff[2] << 4) | (coeff[3] & 0xF))
201
- self._humidity_calib[4] = float(((coeff[3] & 0xF0) << 4) | coeff[4])
+ self._humidity_calib[4] = float((coeff[4] << 4) | (coeff[3] >> 4))
202
self._humidity_calib[5] = float(coeff[5])
203
204
def _read_byte(self, register):
0 commit comments