got rid of compiler warning for decoder

This commit is contained in:
strawmanbobi
2016-11-13 18:10:26 +08:00
parent 549b742485
commit c5c2dde103
4 changed files with 8 additions and 5 deletions

View File

@@ -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 /////////////////////////////////////////////////

View File

@@ -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 /////////////////////////////////////////////////

View File

@@ -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);

View File

@@ -16,6 +16,7 @@ Revision log:
#include <string.h>
#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)