Skip to content

Commit

Permalink
Merge pull request #8 from caternuson/iss7
Browse files Browse the repository at this point in the history
Update _reset for MCP2221
  • Loading branch information
caternuson authored Aug 27, 2021
2 parents 5c1e198 + 5e48fa4 commit 3187395
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adafruit_sgp40.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ def _reset(self):
self._command_buffer[1] = 0x06
try:
self._read_word_from_command(delay_ms=50)
except OSError:
except (OSError, RuntimeError):
# Got expected OSError from reset
# or RuntimeError on some Blinka setups
pass
sleep(1)

Expand Down

0 comments on commit 3187395

Please sign in to comment.