Commit 58d6f405 authored by Dimitris Lampridis's avatar Dimitris Lampridis
Browse files

Sw/Python: fixed bug in I2cIoExpWriteByte() which caused it to stall while...

Sw/Python: fixed bug in I2cIoExpWriteByte() which caused it to stall while waiting for the status of the wrong peripheral
parent 301b79a0
......@@ -397,7 +397,7 @@ class VfcHd_System:
def I2cIoExpWriteByte(self, Byte):
self.Write("Sys_IoExpCommand", 0x02000000+Byte) #Sending the byte address
while (self.Read("Sys_WrPrmStatus") &0xff000000):
while (self.Read("Sys_IoExpStatus") &0xff000000):
pass
if (self.Read("Sys_IoExpStatus") &0x100):
print "No module acknowledge the I2C transaction on the byte address"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment