Skip to content

Commit b0d6406

Browse files
authored
Merge branch 'adafruit:main' into main
2 parents c7bc34d + 3187395 commit b0d6406

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_sgp40.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,9 @@ def _reset(self):
663663
self._command_buffer[1] = 0x06
664664
try:
665665
self._read_word_from_command(delay_ms=50)
666-
except OSError:
666+
except (OSError, RuntimeError):
667667
# Got expected OSError from reset
668+
# or RuntimeError on some Blinka setups
668669
pass
669670
sleep(1)
670671

0 commit comments

Comments
 (0)