Skip to content

Commit

Permalink
Cleanup of logErrors, added missing break in case
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs authored and pull[bot] committed Nov 18, 2023
1 parent ad5bfa6 commit 1184727
Show file tree
Hide file tree
Showing 4 changed files with 608 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/app/clusters/scenes/SceneTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ class SceneTable
// Handlers
virtual bool HandlerListEmpty() { return mHandlerList.Empty(); }

// SceneHandler * mHandlers[kMaxSceneHandlers] = { nullptr };
IntrusiveList<SceneHandler> mHandlerList;
};

Expand Down
2 changes: 1 addition & 1 deletion src/app/clusters/scenes/SceneTableImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct SceneTableData : public SceneTableEntry, PersistentData<kPersistentSceneB
{
CharSpan nameSpan(mStorageData.mName, mStorageData.mNameLength);
TLV::TLVType container;
LogErrorOnFailure(writer.StartContainer(TLV::AnonymousTag(), TLV::kTLVType_Structure, container));
ReturnErrorOnFailure(writer.StartContainer(TLV::AnonymousTag(), TLV::kTLVType_Structure, container));

// Scene ID
ReturnErrorOnFailure(writer.Put(TLV::ContextTag(TagScene::kEndpointID), mStorageId.mEndpointId));
Expand Down
Loading

0 comments on commit 1184727

Please sign in to comment.