Merge branch 'master' of https://github.com/strawmanbobi/IRDA_EXT
This commit is contained in:
@@ -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 /////////////////////////////////////////////////
|
||||
|
||||
@@ -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 /////////////////////////////////////////////////
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user