forked from M-Labs/artiq
coredevice/i2c: fix exception message
This commit is contained in:
parent
70f0a7447f
commit
200cddc346
@ -64,7 +64,7 @@ class TCA6424A:
|
||||
raise I2CError("TCA6424A failed to ack command")
|
||||
for i in range(3):
|
||||
if not i2c_write(self.busno, value >> 16):
|
||||
raise I2CError("TCA6424A failed to ack command")
|
||||
raise I2CError("TCA6424A failed to ack data")
|
||||
value <<= 8
|
||||
finally:
|
||||
i2c_stop(self.busno)
|
||||
|
Loading…
Reference in New Issue
Block a user