From ad2700c1c3a556e7da330b21347323bad4d97498 Mon Sep 17 00:00:00 2001 From: "Limor \"Ladyada\" Fried" Date: Wed, 2 Oct 2019 00:05:03 -0400 Subject: [PATCH] Revert "Fixed I2C Status Bit" --- adafruit_mprls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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