From 9c0624c1c7ff23542acff83fa3518292a1a53674 Mon Sep 17 00:00:00 2001 From: caffreyfans Date: Thu, 17 Dec 2020 13:20:03 +0800 Subject: [PATCH] change ESP8266 macro definition --- src/ir_decoder/src/ir_ac_binary_parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ir_decoder/src/ir_ac_binary_parse.c b/src/ir_decoder/src/ir_ac_binary_parse.c index c2ff2eb..de1f016 100644 --- a/src/ir_decoder/src/ir_ac_binary_parse.c +++ b/src/ir_decoder/src/ir_ac_binary_parse.c @@ -33,11 +33,11 @@ const UINT16 tag_index[TAG_COUNT_FOR_PROTOCOL] = INT8 binary_parse_offset() { int i = 0; -#if defined BOARD_ESP8266 +#if defined(ESP8266) || defined(ESP32) UINT8 *phead = (UINT8 *)&p_ir_buffer->data[1]; #else UINT16 *phead = (UINT16 *)&p_ir_buffer->data[1]; -#endif // BOARD_ESP8266 +#endif // ESPRESSIF tag_count = p_ir_buffer->data[0]; if (TAG_COUNT_FOR_PROTOCOL != tag_count) @@ -63,7 +63,7 @@ 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 +#elif defined(ESP8266) || defined(ESP32) UINT16 tmp_a = *(phead + i * 2); UINT16 tmp_b = *(phead + i * 2 + 1); tags[i].offset = tmp_b << 8 | tmp_a;