mirror of https://github.com/m-labs/artiq.git
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")
|
raise I2CError("TCA6424A failed to ack command")
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
if not i2c_write(self.busno, value >> 16):
|
if not i2c_write(self.busno, value >> 16):
|
||||||
raise I2CError("TCA6424A failed to ack command")
|
raise I2CError("TCA6424A failed to ack data")
|
||||||
value <<= 8
|
value <<= 8
|
||||||
finally:
|
finally:
|
||||||
i2c_stop(self.busno)
|
i2c_stop(self.busno)
|
||||||
|
|
Loading…
Reference in New Issue