diff --git a/.gitignore b/.gitignore index 03b03b7..3141739 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ src/ir_decoder/out src/ir_decoder/libs src/ir_decoder/obj src/ir_encoder/source +src/ir_decoder/cmake-build-debug files/ files/* .DS_Store diff --git a/src/ir_decoder/include/irda_decode.h b/src/ir_decoder/include/irda_decode.h index 2697702..af92423 100644 --- a/src/ir_decoder/include/irda_decode.h +++ b/src/ir_decoder/include/irda_decode.h @@ -28,13 +28,6 @@ Revision log: #define AC_PARAMETER_TYPE_1 0 #define AC_PARAMETER_TYPE_2 1 -const UINT16 tag_index[TAG_COUNT_FOR_PROTOCOL] = -{ - 1, 2, 3, 4, 5, 6, 7, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 41, 42, 43, 44, 45, 46, 47, 48 -}; - typedef enum { AC_POWER_ON = 0, diff --git a/src/ir_decoder/irda_decode.c b/src/ir_decoder/irda_decode.c index 3af8e8b..277f025 100644 --- a/src/ir_decoder/irda_decode.c +++ b/src/ir_decoder/irda_decode.c @@ -64,6 +64,13 @@ lp_apply_ac_parameter apply_table[AC_APPLY_MAX] = apply_swing }; +const UINT16 tag_index[TAG_COUNT_FOR_PROTOCOL] = +{ + 1, 2, 3, 4, 5, 6, 7, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 41, 42, 43, 44, 45, 46, 47, 48 +}; + #if defined BOARD_PC void free_pirda(void); #endif diff --git a/src/ir_encoder/irda_tv_protocol_hex.py b/src/ir_encoder/irda_tv_protocol_hex.py index 376aed8..38bd965 100644 --- a/src/ir_encoder/irda_tv_protocol_hex.py +++ b/src/ir_encoder/irda_tv_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)