Skip to content

Commit

Permalink
Merge pull request #14 from sokratisvas/remove-mask
Browse files Browse the repository at this point in the history
remove response mask
  • Loading branch information
caternuson authored Aug 26, 2022
2 parents 4b44479 + 5b051d9 commit 151943b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_si1145.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 151943b

Please sign in to comment.