Skip to content

Commit

Permalink
Create a config to allow increasing the SceneTableImpl's scene buffer…
Browse files Browse the repository at this point in the history
… size in the event the number of clusters per scene would be increased
  • Loading branch information
lpbeliveau-silabs committed Nov 23, 2023
1 parent 28ddbeb commit 1253520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/clusters/scenes-server/SceneTableImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct EndpointSceneCount : public PersistentData<kPersistentBufferSceneCountByt
// when using the OnOff, Level Control and Color Control as well as the maximal name length of 16 bytes. Putting 256 gives some
// slack in case different clusters are used. Value obtained by using writer.GetLengthWritten at the end of the SceneTableData
// Serialize method.
static constexpr size_t kPersistentSceneBufferMax = 256;
static constexpr size_t kPersistentSceneBufferMax = CHIP_CONFIG_SCENES_MAX_SERIALIZED_SCENE_SIZE_BYTES;

struct SceneTableData : public SceneTableEntry, PersistentData<kPersistentSceneBufferMax>
{
Expand Down

0 comments on commit 1253520

Please sign in to comment.