Skip to content

Commit 151943b

Browse files
authored
Merge pull request #14 from sokratisvas/remove-mask
remove response mask
2 parents 4b44479 + 5b051d9 commit 151943b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_si1145.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def _send_command(self, command):
162162
response = self._read_register(_RESPONSE)
163163
while counter == response & 0x0F:
164164
if response & 0xF0:
165-
raise RuntimeError("SI1145 Error: 0x{:02x}".format(response & 0xF0))
165+
raise RuntimeError("SI1145 Error: 0x{:02x}".format(response))
166166
response = self._read_register(_RESPONSE)
167167
return response
168168

0 commit comments

Comments
 (0)