build for release 0.1.5

This commit is contained in:
strawmanbobi
2018-09-09 21:16:31 +08:00
parent 4e3f319126
commit dd2eac8c02
10 changed files with 12 additions and 4 deletions

View File

@@ -33,7 +33,11 @@ const UINT16 tag_index[TAG_COUNT_FOR_PROTOCOL] =
INT8 binary_parse_offset()
{
int i = 0;
UINT16 *phead = (UINT16 *) &p_ir_buffer->data[1];
#if defined BOARD_ESP8266
UINT8 *phead = (UINT8 *)&p_ir_buffer->data[1];
#else
UINT16 *phead = (UINT16 *)&p_ir_buffer->data[1];
#endif // BOARD_ESP8266
tag_count = p_ir_buffer->data[0];
if (TAG_COUNT_FOR_PROTOCOL != tag_count)
@@ -59,6 +63,10 @@ INT8 binary_parse_offset()
#if defined BOARD_STM8 && defined COMPILER_IAR
UINT16 offset = *(phead + i);
tags[i].offset = (offset >> 8) | (offset << 8);
#elif defined BOARD_ESP8266
UINT16 tmp_a = *(phead + i * 2);
UINT16 tmp_b = *(phead + i * 2 + 1);
tags[i].offset = tmp_b << 8 | tmp_a;
#else
tags[i].offset = *(phead + i);
#endif

View File

@@ -267,7 +267,7 @@ static UINT16 ir_ac_lib_control(t_remote_ac_status ac_status, UINT16 *user_data,
UINT16 time_length = 0;
#if defined BOARD_PC
UINT8 i = 0;
UINT16 i = 0;
#endif
if (0 == context->default_code.len)