changed tag definistion for encode algorithms

This commit is contained in:
strawmanbobi
2016-11-24 23:08:40 +08:00
parent 54dd88c6a5
commit fead08799a
3 changed files with 11 additions and 11 deletions

View File

@@ -28,6 +28,13 @@ 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

@@ -42,14 +42,6 @@ UINT16 user_data[USER_DATA_SIZE] = {0};
UINT8 tv_bin[EXPECTED_MEM_SIZE] = {0};
remote_ac_status_t ac_status;
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
};
// 2016-10-09 updated by strawmanbobi, change global data context to array pointer
protocol *context = (protocol *) byteArray;

View File

@@ -10,9 +10,10 @@ import xml.dom.minidom
import struct
alltags = [300, 301, 302, 303, 305, 306, 307, 1001, 1002, 1003,
1004, 1005, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1015,
1016, 1501, 1502, 1503, 1504, 1505, 1506, 1508, 1509]
alltags = [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]
tags_max_size = [0 for x in range(0, len(alltags))]
# Definition of ac tag class