Skip to content

Commit 321f829

Browse files
doublemis1nordicjm
authored andcommitted
samples: matter: Fix Smoke CO alarm Feature Map value
Current feature map value is out of avaliable range based on Matter 1.4 Signed-off-by: Michał Szablowski <[email protected]>
1 parent 8f68db6 commit 321f829

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

samples/matter/smoke_co_alarm/src/default_zap/smoke_co_alarm.zap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5208,7 +5208,7 @@
52085208
"storageOption": "RAM",
52095209
"singleton": 0,
52105210
"bounded": 0,
5211-
"defaultValue": "7",
5211+
"defaultValue": "3",
52125212
"reportable": 1,
52135213
"minInterval": 1,
52145214
"maxInterval": 65534,

samples/matter/smoke_co_alarm/src/default_zap/zap-generated/IMClusterCommandHandler.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@ namespace chip
3434
{
3535
namespace app
3636
{
37-
3837
// Cluster specific command parsing
3938

4039
namespace Clusters
4140
{
42-
4341
namespace AdministratorCommissioning
4442
{
45-
4643
void DispatchServerCommand(CommandHandler *apCommandObj,
4744
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
4845
{
@@ -107,7 +104,6 @@ namespace app
107104

108105
namespace DiagnosticLogs
109106
{
110-
111107
void DispatchServerCommand(CommandHandler *apCommandObj,
112108
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
113109
{
@@ -152,7 +148,6 @@ namespace app
152148

153149
namespace GeneralCommissioning
154150
{
155-
156151
void DispatchServerCommand(CommandHandler *apCommandObj,
157152
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
158153
{
@@ -217,7 +212,6 @@ namespace app
217212

218213
namespace GeneralDiagnostics
219214
{
220-
221215
void DispatchServerCommand(CommandHandler *apCommandObj,
222216
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
223217
{
@@ -272,7 +266,6 @@ namespace app
272266

273267
namespace GroupKeyManagement
274268
{
275-
276269
void DispatchServerCommand(CommandHandler *apCommandObj,
277270
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
278271
{
@@ -346,7 +339,6 @@ namespace app
346339

347340
namespace IcdManagement
348341
{
349-
350342
void DispatchServerCommand(CommandHandler *apCommandObj,
351343
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
352344
{
@@ -410,7 +402,6 @@ namespace app
410402

411403
namespace Identify
412404
{
413-
414405
void DispatchServerCommand(CommandHandler *apCommandObj,
415406
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
416407
{
@@ -454,7 +445,6 @@ namespace app
454445

455446
namespace OtaSoftwareUpdateRequestor
456447
{
457-
458448
void DispatchServerCommand(CommandHandler *apCommandObj,
459449
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
460450
{
@@ -499,7 +489,6 @@ namespace app
499489

500490
namespace OperationalCredentials
501491
{
502-
503492
void DispatchServerCommand(CommandHandler *apCommandObj,
504493
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
505494
{
@@ -613,7 +602,6 @@ namespace app
613602

614603
namespace SmokeCoAlarm
615604
{
616-
617605
void DispatchServerCommand(CommandHandler *apCommandObj,
618606
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
619607
{
@@ -657,7 +645,6 @@ namespace app
657645

658646
namespace ThreadNetworkDiagnostics
659647
{
660-
661648
void DispatchServerCommand(CommandHandler *apCommandObj,
662649
const ConcreteCommandPath &aCommandPath, TLV::TLVReader &aDataTlv)
663650
{

samples/matter/smoke_co_alarm/src/default_zap/zap-generated/endpoint_config.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@
483483
{ ZAP_EMPTY_DEFAULT(), 0x00000005, 1, ZAP_TYPE(BOOLEAN), 0 }, /* TestInProgress */ \
484484
{ ZAP_EMPTY_DEFAULT(), 0x00000006, 1, ZAP_TYPE(BOOLEAN), 0 }, /* HardwareFaultAlert */ \
485485
{ ZAP_EMPTY_DEFAULT(), 0x00000007, 1, ZAP_TYPE(ENUM8), 0 }, /* EndOfServiceAlert */ \
486-
{ ZAP_SIMPLE_DEFAULT(7), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \
486+
{ ZAP_SIMPLE_DEFAULT(3), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \
487487
{ ZAP_SIMPLE_DEFAULT(1), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \
488488
}
489489

@@ -924,10 +924,7 @@ static_assert(ATTRIBUTE_LARGEST <= CHIP_CONFIG_MAX_ATTRIBUTE_STORE_ELEMENT_SIZE,
924924
// Array of device types
925925
#define FIXED_DEVICE_TYPES \
926926
{ \
927-
{ 0x00000011, 1 }, { 0x00000016, 3 }, { 0x00000011, 1 }, \
928-
{ \
929-
0x00000076, 1 \
930-
} \
927+
{ 0x00000011, 1 }, { 0x00000016, 3 }, { 0x00000011, 1 }, { 0x00000076, 1 } \
931928
}
932929

933930
// Array of device type offsets

0 commit comments

Comments
 (0)