Skip to content

Commit 061c040

Browse files
authored
Merge pull request #6 from romanakozak/patch-1
Fixed I2C Status Bit
2 parents 4a97704 + 9c24271 commit 061c040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_mprls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _read_data(self):
123123
# check other status bits
124124
if self._buffer[0] & 0x01:
125125
raise RuntimeError("Internal math saturation")
126-
if self._buffer[0] & 0x04:
126+
if self._buffer[2] & 0x01:
127127
raise RuntimeError("Integrity failure")
128128

129129
# All is good, calculate the PSI and convert to hPA

0 commit comments

Comments
 (0)