diff --git a/encoder/src/ir_command_protocol_hex.py b/encoder/src/ir_command_protocol_hex.py index 38bd965..84fd183 100644 --- a/encoder/src/ir_command_protocol_hex.py +++ b/encoder/src/ir_command_protocol_hex.py @@ -118,7 +118,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) diff --git a/encoder/src/ir_status_encode.py b/encoder/src/ir_status_encode.py index af3fe83..197a126 100644 --- a/encoder/src/ir_status_encode.py +++ b/encoder/src/ir_status_encode.py @@ -71,7 +71,7 @@ def create_binary(ac_device): # Find Max length if tags_max_size[i] < ac_device.tags[j].len: - tags_max_size[i] = ac_device.tags[j].len; + tags_max_size[i] = ac_device.tags[j].len find = 1 break