fixed build issue for CMake 3.6.2

This commit is contained in:
strawmanbobi
2016-11-27 10:58:06 +08:00
parent fead08799a
commit 29d00e695e
4 changed files with 9 additions and 8 deletions

1
.gitignore vendored
View File

@@ -6,6 +6,7 @@ src/ir_decoder/out
src/ir_decoder/libs
src/ir_decoder/obj
src/ir_encoder/source
src/ir_decoder/cmake-build-debug
files/
files/*
.DS_Store

View File

@@ -28,13 +28,6 @@ Revision log:
#define AC_PARAMETER_TYPE_1 0
#define AC_PARAMETER_TYPE_2 1
const UINT16 tag_index[TAG_COUNT_FOR_PROTOCOL] =
{
1, 2, 3, 4, 5, 6, 7,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
41, 42, 43, 44, 45, 46, 47, 48
};
typedef enum
{
AC_POWER_ON = 0,

View File

@@ -64,6 +64,13 @@ lp_apply_ac_parameter apply_table[AC_APPLY_MAX] =
apply_swing
};
const UINT16 tag_index[TAG_COUNT_FOR_PROTOCOL] =
{
1, 2, 3, 4, 5, 6, 7,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
41, 42, 43, 44, 45, 46, 47, 48
};
#if defined BOARD_PC
void free_pirda(void);
#endif

View File

@@ -118,7 +118,7 @@ def printProtocol(file):
else:
mode = 1
print "{%d, \"%s\", %d, %d, %s}" % (index, i.getAttribute('bits'), \
print "{%d, \"%s\", %d, %d, %s}" % (index, i.getAttribute('bits'),\
lsb, mode, i.firstChild.data)
flag = IRDAData(int(i.getAttribute('bits')), lsb, mode, int(i.firstChild.data))
irda_frame.append(flag)