diff --git a/src/ir_decoder/include/irda_decode.h b/src/ir_decoder/include/irda_decode.h index 123b809..9ca6c04 100644 --- a/src/ir_decoder/include/irda_decode.h +++ b/src/ir_decoder/include/irda_decode.h @@ -523,7 +523,7 @@ extern UINT16 irda_tv_lib_control(UINT8 key_code, UINT16 * l_user_data); * * return: IR_DECODE_SUCCEEDED / IR_DECODE_FAILED */ -extern UINT16 irda_tv_lib_close(); +extern INT8 irda_tv_lib_close(); ///////////////////////////////////////////////// TV End ///////////////////////////////////////////////// ///////////////////////////////////////////////// Utils Begin ///////////////////////////////////////////////// diff --git a/src/ir_decoder/irda_decode.c b/src/ir_decoder/irda_decode.c index aae8a5b..b93896a 100644 --- a/src/ir_decoder/irda_decode.c +++ b/src/ir_decoder/irda_decode.c @@ -1215,8 +1215,9 @@ UINT16 irda_tv_lib_control(UINT8 key, UINT16* l_user_data) return irda_code_length; } -UINT16 irda_tv_lib_close() +INT8 irda_tv_lib_close() { // no need to close tv binary + return IR_DECODE_SUCCEEDED; } ///////////////////////////////////////////////// TV End ///////////////////////////////////////////////// \ No newline at end of file diff --git a/src/ir_decoder/irda_main.c b/src/ir_decoder/irda_main.c index 771fcf1..7300f64 100644 --- a/src/ir_decoder/irda_main.c +++ b/src/ir_decoder/irda_main.c @@ -68,8 +68,8 @@ INT8 decode_as_ac(const char* file_name) // get status UINT8 supported_mode = 0x00; - UINT8 min_temperature = 0; - UINT8 max_temperature = 0; + INT8 min_temperature = 0; + INT8 max_temperature = 0; UINT8 supported_speed = 0x00; UINT8 supported_swing = 0x00; @@ -221,7 +221,7 @@ INT8 irda_tv_file_open(const char* file_name) fseek(stream, 0, SEEK_END); binary_length = ftell(stream); - IR_PRINTF("length of binary = %d\n", binary_length); + IR_PRINTF("length of binary = %d\n", (int)binary_length); binary_content = (UINT8*) irda_malloc(binary_length); diff --git a/src/ir_decoder/irda_tv_parse_protocol.c b/src/ir_decoder/irda_tv_parse_protocol.c index ca37506..3d3c4c6 100644 --- a/src/ir_decoder/irda_tv_parse_protocol.c +++ b/src/ir_decoder/irda_tv_parse_protocol.c @@ -16,6 +16,7 @@ Revision log: #include #include "include/irda_defs.h" +#include "include/irda_decode.h" #include "include/irda_tv_parse_protocol.h" /************************************************************************************************** @@ -111,6 +112,7 @@ INT8 tv_lib_open(UINT8 *binary, UINT16 binary_length) pbuffer->data = binary; pbuffer->len = binary_length; pbuffer->offset = 0; + return IR_DECODE_SUCCEEDED; } BOOL tv_lib_parse(UINT8 encode_type)