Commit 53e38ee4 authored by Matthieu Cattin's avatar Matthieu Cattin

Fix bug in single byte write.

parent 4f31af33
......@@ -21,6 +21,8 @@ class C24AA64:
self.i2c.write(data[i],False)
if len(data) > 1:
i += 1
else:
i = 0
#print('24AA64:write:last i=%d')%(i)
self.i2c.write(data[i],True)
return 0;
......
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