Skip to content

Commit

Permalink
Fixed default SceneTableSize value in waterleakdetector and improved …
Browse files Browse the repository at this point in the history
…the ifdef detection of the define
  • Loading branch information
lpbeliveau-silabs committed Sep 4, 2024
1 parent a6f083e commit dc2c9fb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,7 @@ endpoint 1 {

server cluster ScenesManagement {
ram attribute lastConfiguredBy;
ram attribute sceneTableSize;
ram attribute sceneTableSize default = 16;
callback attribute fabricSceneInfo;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "16",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
2 changes: 1 addition & 1 deletion examples/chef/devices/template.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2765,7 +2765,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "16",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
2 changes: 1 addition & 1 deletion src/app/clusters/scenes-server/SceneTableImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
namespace chip {
namespace scenes {

#ifdef SCENES_MANAGEMENT_TABLE_SIZE
#if defined(SCENES_MANAGEMENT_TABLE_SIZE) && SCENES_MANAGEMENT_TABLE_SIZE
static constexpr uint16_t kMaxScenesPerEndpoint = SCENES_MANAGEMENT_TABLE_SIZE;
#else
static constexpr uint16_t kMaxScenesPerEndpoint = CHIP_CONFIG_MAX_SCENES_TABLE_SIZE;
Expand Down

0 comments on commit dc2c9fb

Please sign in to comment.