reformatted encoding algorithm

This commit is contained in:
strawmanbobi
2016-11-13 13:52:57 +08:00
parent c169499e3a
commit fb7c06afa6
40 changed files with 663 additions and 483 deletions

View File

@@ -115,7 +115,7 @@ def printProtocol(file):
else:
mode = 1
print "{%d, \"%s\", %d, %d, %s}" % (index, i.getAttribute('bits'), \
print "{%d, \"%s\", %d, %d, %s}" % (index, i.getAttribute('bits'),
lsb, mode, i.firstChild.data)
flag = IRDAData(int(i.getAttribute('bits')), lsb, mode, int(i.firstChild.data))
irda_frame.append(flag)