synced up with 0.2.4 decode core
This commit is contained in:
@@ -1137,7 +1137,7 @@ INT8 parse_swing_info(struct tag_head *tag, t_swing_info *si)
|
||||
// count how many swing types are there
|
||||
si->type = SWING_TYPE_NORMAL;
|
||||
si->mode_count = 1;
|
||||
for (int i = 0; i < tag->len; i++)
|
||||
for (int i = 0; i < tag->len; i++)
|
||||
{
|
||||
if (tag->p_data[i] == ',')
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ Revision log:
|
||||
struct ir_bin_buffer binary_file;
|
||||
struct ir_bin_buffer *p_ir_buffer = &binary_file;
|
||||
|
||||
const char* release = "0.2.2";
|
||||
const char* release = "0.2.4";
|
||||
|
||||
#if defined USE_DYNAMIC_TAG
|
||||
struct tag_head *tags;
|
||||
@@ -61,7 +61,7 @@ static INT8 ir_ac_file_open(const char *file_name);
|
||||
|
||||
static INT8 ir_ac_binary_open(UINT8 *binary, UINT16 binary_length);
|
||||
static UINT16 ir_ac_control(t_remote_ac_status ac_status, UINT16 *user_data, UINT8 function_code,
|
||||
BOOL change_wind_direction);
|
||||
BOOL change_wind_direction);
|
||||
static INT8 ir_ac_binary_close();
|
||||
|
||||
#if !defined NO_FS
|
||||
@@ -286,7 +286,7 @@ static INT8 ir_ac_binary_open(UINT8 *binary, UINT16 binary_length)
|
||||
}
|
||||
|
||||
static UINT16 ir_ac_control(t_remote_ac_status ac_status, UINT16 *user_data, UINT8 key_code,
|
||||
BOOL change_wind_direction)
|
||||
BOOL change_wind_direction)
|
||||
{
|
||||
UINT16 time_length = 0;
|
||||
|
||||
@@ -296,6 +296,7 @@ static UINT16 ir_ac_control(t_remote_ac_status ac_status, UINT16 *user_data, UIN
|
||||
|
||||
UINT8 function_code = 0;
|
||||
|
||||
ir_printf("key code = %d\n", key_code);
|
||||
switch(key_code)
|
||||
{
|
||||
case 0:
|
||||
@@ -580,6 +581,9 @@ INT8 get_supported_wind_direction(UINT8 *supported_wind_direction)
|
||||
if (NULL != context)
|
||||
{
|
||||
*supported_wind_direction = (UINT8) (context->si.mode_count - 1);
|
||||
if (*supported_wind_direction < 0) {
|
||||
*supported_wind_direction = 0;
|
||||
}
|
||||
return IR_DECODE_SUCCEEDED;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user