updated decore core in examples to 0.2.2

This commit is contained in:
strawmanbobi
2019-07-03 19:21:45 +08:00
parent 849053a2f4
commit 9e94d02031
10 changed files with 67 additions and 49 deletions

View File

@@ -51,11 +51,12 @@ extern "C"
#define KEY_TV_SETTINGS 13
#define KEY_AC_POWER 0
#define KEY_AC_TEMP_PLUS 1
#define KEY_AC_TEMP_MINUS 2
#define KEY_AC_MODE_SWITCH 8
#define KEY_AC_MODE_SWITCH 1
#define KEY_AC_TEMP_PLUS 2
#define KEY_AC_TEMP_MINUS 3
#define KEY_AC_WIND_SPEED 9
#define KEY_AC_WIND_DIRECTION 10
#define KEY_AC_WIND_SWING 10
#define KEY_AC_WIND_FIX 11
#define KEY_STB_POWER 0
#define KEY_STB_MUTE 1

View File

@@ -1099,8 +1099,6 @@ INT8 parse_function_2_tag34(struct tag_head *tag, t_function_2 *function2)
INT8 parse_swing_info(struct tag_head *tag, t_swing_info *si)
{
int i;
if (NULL == tag)
{
return IR_DECODE_FAILED;
@@ -1137,16 +1135,15 @@ INT8 parse_swing_info(struct tag_head *tag, t_swing_info *si)
* length greater than 1 indicates both auto-swing and some swing angles are supported
*/
// count how many swing types are there
si->type = SWING_TYPE_NORMAL;
//si->mode_count = (UINT8) ((tag->len + 1) >> 1);
si->mode_count = 1;
for (i = 0; i < tag->len; i++)
{
if (tag->p_data[i] == ',')
{
si->mode_count++;
}
}
si->type = SWING_TYPE_NORMAL;
si->mode_count = 1;
for (i = 0; i < tag->len; i++)
{
if (tag->p_data[i] == ',')
{
si->mode_count++;
}
}
return IR_DECODE_SUCCEEDED;
}

View File

@@ -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.1";
const char* release = "0.2.2";
#if defined USE_DYNAMIC_TAG
struct tag_head *tags;
@@ -305,14 +305,10 @@ static UINT16 ir_ac_control(t_remote_ac_status ac_status, UINT16 *user_data, UIN
function_code = AC_FUNCTION_MODE;
break;
case 2:
function_code = AC_FUNCTION_TEMPERATURE_UP;
break;
case 3:
function_code = AC_FUNCTION_TEMPERATURE_DOWN;
break;
case 7:
function_code = AC_FUNCTION_TEMPERATURE_UP;
break;
case 3:
case 8:
function_code = AC_FUNCTION_TEMPERATURE_DOWN;
break;
@@ -322,6 +318,9 @@ static UINT16 ir_ac_control(t_remote_ac_status ac_status, UINT16 *user_data, UIN
case 10:
function_code = AC_FUNCTION_WIND_SWING;
break;
case 11:
function_code = AC_FUNCTION_WIND_FIX;
break;
}
if (0 == context->default_code.len)