From a0a3cc5a6846ad5dec415ed225fde9146b3ff051 Mon Sep 17 00:00:00 2001 From: strawmanbobi Date: Wed, 31 Oct 2018 23:39:32 +0800 Subject: [PATCH] compatibility change for 51 chipset --- src/ir_decoder/src/ir_decode.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ir_decoder/src/ir_decode.c b/src/ir_decoder/src/ir_decode.c index 367e874..052c044 100644 --- a/src/ir_decoder/src/ir_decode.c +++ b/src/ir_decoder/src/ir_decode.c @@ -71,7 +71,7 @@ void noprint(const char *fmt, ...) } // pubic function definitions - +#if (!defined BOARD_51 && !defined BOARD_CC26XX) INT8 ir_file_open(const UINT8 category, const UINT8 sub_category, const char* file_name) { INT8 ret = IR_DECODE_SUCCEEDED; @@ -115,7 +115,12 @@ INT8 ir_file_open(const UINT8 category, const UINT8 sub_category, const char* fi } } } - +#else +INT8 ir_file_open(const UINT8 category, const UINT8 sub_category, const char* file_name) +{ + return IR_DECODE_SUCCESS; +} +#endif INT8 ir_binary_open(const UINT8 category, const UINT8 sub_category, UINT8* binary, UINT16 binary_length) {