Skip to content

Commit 56858d9

Browse files
authored
Matter fix generate script (#24134)
1 parent e5aeed6 commit 56858d9

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

lib/libesp32/berry_matter/generate/Matter_generate_c.be

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ for cl:cl_ids
9191
var attr_ids_local = k2l(attr_id_name)
9292

9393
for attr_id:attr_ids_local
94+
if attr_id >= 0xFFF0 continue end
9495
var reportable = attributes[attr_id].find('reportable', false)
9596
var writable = attributes[attr_id].find('writable', false)
9697
var flags = (writable ? 0x01 : 0x00) | (reportable ? 0x02 : 0x00)

lib/libesp32/berry_matter/generate/be_matter_clusters.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ const matter_attribute_t matter_Attributes_001D[] = {
147147
{ 0x0001, 0, 0x02, "ServerList" },
148148
{ 0x0002, 0, 0x02, "ClientList" },
149149
{ 0x0003, 0, 0x02, "PartsList" },
150-
{ 0x0004, 0, 0x02, "TagList" },
151150
{ 0xFFFF, 0, 0x00, NULL },
152151
};
153152

@@ -229,9 +228,6 @@ const matter_command_t matter_Commands_0028[] = {
229228
};
230229

231230
const matter_attribute_t matter_Attributes_0029[] = {
232-
{ 0xFFFB, 0, 0x02, "AttributeList" },
233-
{ 0xFFFC, 0, 0x02, "FeatureMap" },
234-
{ 0xFFFD, 0, 0x02, "ClusterRevision" },
235231
{ 0xFFFF, 0, 0x00, NULL },
236232
};
237233

@@ -247,9 +243,6 @@ const matter_attribute_t matter_Attributes_002A[] = {
247243
{ 0x0001, 0, 0x02, "UpdatePossible" },
248244
{ 0x0002, 0, 0x02, "UpdateState" },
249245
{ 0x0003, 0, 0x02, "UpdateStateProgress" },
250-
{ 0xFFFB, 0, 0x02, "AttributeList" },
251-
{ 0xFFFC, 0, 0x02, "FeatureMap" },
252-
{ 0xFFFD, 0, 0x02, "ClusterRevision" },
253246
{ 0xFFFF, 0, 0x00, NULL },
254247
};
255248

@@ -281,9 +274,6 @@ const matter_command_t matter_Commands_002C[] = {
281274

282275
const matter_attribute_t matter_Attributes_002D[] = {
283276
{ 0x0000, 0, 0x03, "TemperatureUnit" },
284-
{ 0xFFFB, 0, 0x02, "AttributeList" },
285-
{ 0xFFFC, 0, 0x02, "FeatureMap" },
286-
{ 0xFFFD, 0, 0x02, "ClusterRevision" },
287277
{ 0xFFFF, 0, 0x00, NULL },
288278
};
289279

@@ -842,9 +832,6 @@ const matter_attribute_t matter_Attributes_0201[] = {
842832
{ 0x0020, 0, 0x02, "StartOfWeek" },
843833
{ 0x0021, 0, 0x02, "NumberOfWeeklyTransitions" },
844834
{ 0x0022, 0, 0x02, "NumberOfDailyTransitions" },
845-
{ 0xFFFB, 0, 0x02, "AttributeList" },
846-
{ 0xFFFC, 0, 0x02, "FeatureMap" },
847-
{ 0xFFFD, 0, 0x02, "ClusterRevision" },
848835
{ 0xFFFF, 0, 0x00, NULL },
849836
};
850837

@@ -1005,9 +992,6 @@ const matter_attribute_t matter_Attributes_0402[] = {
1005992
{ 0x0001, 0, 0x02, "MinMeasuredValue" },
1006993
{ 0x0002, 0, 0x02, "MaxMeasuredValue" },
1007994
{ 0x0003, 0, 0x02, "Tolerance" },
1008-
{ 0xFFFB, 0, 0x02, "AttributeList" },
1009-
{ 0xFFFC, 0, 0x02, "FeatureMap" },
1010-
{ 0xFFFD, 0, 0x02, "ClusterRevision" },
1011995
{ 0xFFFF, 0, 0x00, NULL },
1012996
};
1013997

@@ -1025,9 +1009,6 @@ const matter_attribute_t matter_Attributes_0403[] = {
10251009
{ 0x0012, 0, 0x02, "MaxScaledValue" },
10261010
{ 0x0013, 0, 0x02, "ScaledTolerance" },
10271011
{ 0x0014, 0, 0x02, "Scale" },
1028-
{ 0xFFFB, 0, 0x02, "AttributeList" },
1029-
{ 0xFFFC, 0, 0x02, "FeatureMap" },
1030-
{ 0xFFFD, 0, 0x02, "ClusterRevision" },
10311012
{ 0xFFFF, 0, 0x00, NULL },
10321013
};
10331014

lib/libesp32/berry_matter/generate/matter_clusters.be

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Matter clusters
22
#
3-
# Needs to be reword, this structure is huge...
3+
# Needs to be reworked, this structure is huge...
44
#
55
# imported from Python definition
66

0 commit comments

Comments
 (0)