We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2d13f1 commit 8975faeCopy full SHA for 8975fae
adafruit_bme280.py
@@ -414,7 +414,7 @@ def _read_coefficients(self):
414
self._humidity_calib = [0]*6
415
self._humidity_calib[0] = self._read_byte(_BME280_REGISTER_DIG_H1)
416
coeff = self._read_register(_BME280_REGISTER_DIG_H2, 7)
417
- coeff = list(struct.unpack('<hBBBBb', bytes(coeff)))
+ coeff = list(struct.unpack('<hBbBbb', bytes(coeff)))
418
self._humidity_calib[1] = float(coeff[0])
419
self._humidity_calib[2] = float(coeff[1])
420
self._humidity_calib[3] = float((coeff[2] << 4) | (coeff[3] & 0xF))
0 commit comments