diff --git a/adafruit_si1145.py b/adafruit_si1145.py index 4c6a999..b465bbe 100644 --- a/adafruit_si1145.py +++ b/adafruit_si1145.py @@ -162,7 +162,7 @@ def _send_command(self, command): response = self._read_register(_RESPONSE) while counter == response & 0x0F: if response & 0xF0: - raise RuntimeError("SI1145 Error: 0x{:02x}".format(response & 0xF0)) + raise RuntimeError("SI1145 Error: 0x{:02x}".format(response)) response = self._read_register(_RESPONSE) return response