coredevice/i2c: fix exception message

This commit is contained in:
Sebastien Bourdeauducq 2016-03-05 00:51:13 +08:00
parent 70f0a7447f
commit 200cddc346

View File

@ -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)