Skip to content

Commit 64755ad

Browse files
committed
add mcpnack for tyeth to test
1 parent 768fe70 commit 64755ad

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

src/adafruit_blinka/microcontroller/mcp2221/mcp2221.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _i2c_write(self, cmd, address, buffer, start=0, end=None):
248248
for _ in range(MCP2221_RETRY_MAX):
249249
status = self._i2c_status()
250250
if status[20] & MASK_ADDR_NACK:
251-
raise RuntimeError("I2C slave address was NACK'd")
251+
raise OSError("I2C slave address was NACK'd")
252252
usb_cmd_status = status[8]
253253
if usb_cmd_status == 0:
254254
break

0 commit comments

Comments
 (0)