Skip to content

Commit 445c88e

Browse files
committed
patch in another location
1 parent 64755ad commit 445c88e

File tree

1 file changed

+2
-1
lines changed
  • src/adafruit_blinka/microcontroller/mcp2221

1 file changed

+2
-1
lines changed

src/adafruit_blinka/microcontroller/mcp2221/mcp2221.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ def i2c_scan(self, *, start=0, end=0x79):
360360
# try a write
361361
try:
362362
self.i2c_writeto(addr, b"\x00")
363-
except RuntimeError: # no reply!
363+
except OSError: # no reply!
364+
# We got a NACK, which could be correct
364365
continue
365366
# store if success
366367
found.append(addr)

0 commit comments

Comments
 (0)