diff --git a/adafruit_mprls.py b/adafruit_mprls.py index d9e0676..f9ae636 100644 --- a/adafruit_mprls.py +++ b/adafruit_mprls.py @@ -123,7 +123,7 @@ def _read_data(self): # check other status bits if self._buffer[0] & 0x01: raise RuntimeError("Internal math saturation") - if self._buffer[2] & 0x01: + if self._buffer[0] & 0x04: raise RuntimeError("Integrity failure") # All is good, calculate the PSI and convert to hPA