removed unused stack space in tv decode

This commit is contained in:
2017-03-03 12:44:28 +08:00
parent 0c4a35eb17
commit 8fe19ee0b6

View File

@@ -30,7 +30,6 @@ UINT8* ir_hex_code = NULL;
UINT8 ir_hex_len = 0;
UINT8 byteArray[PROTOCOL_SIZE] = { 0 };
UINT8 tv_bin[EXPECTED_MEM_SIZE] = { 0 };
size_t binary_length = 0;
UINT8 *binary_content = NULL;
@@ -445,7 +444,6 @@ INT8 ir_tv_lib_parse(UINT8 ir_hex_encode)
if (FALSE == tv_lib_parse(ir_hex_encode))
{
ir_printf("parse irda binary failed\n");
memset(tv_bin, 0x00, EXPECTED_MEM_SIZE);
return IR_DECODE_FAILED;
}
return IR_DECODE_SUCCEEDED;