Skip to content

Commit 29fd429

Browse files
authored
Merge pull request #7 from adafruit/revert-6-patch-1
Revert "Fixed I2C Status Bit"
2 parents 061c040 + ad2700c commit 29fd429

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[2] & 0x01:
126+
if self._buffer[0] & 0x04:
127127
raise RuntimeError("Integrity failure")
128128

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

0 commit comments

Comments
 (0)