@@ -50,7 +50,7 @@ static constexpr size_t kSceneNameMaxLength = CHIP_CONFIG_SCENES_CLUSTER_MAXIMUM
50
50
// /
51
51
// / A SceneHandler can handle a single <endpoint, cluster> pair, or many such pairs.
52
52
// /
53
- // / @note If more than one handler claims to handl a specific <endpoint, cluster> pair, only one of
53
+ // / @note If more than one handler claims to handle a specific <endpoint, cluster> pair, only one of
54
54
// / those handlers will get called when executing actions related to extension field sets on the scene
55
55
// / table. It is not defined which handler will be selected.
56
56
@@ -110,8 +110,7 @@ class SceneHandler : public IntrusiveListNodeBase<>
110
110
// /
111
111
// / @param extensionFieldSet[out] ExtensionFieldSet in command format
112
112
// / @return CHIP_NO_ERROR if successful, CHIP_ERROR value otherwise
113
- // / @note Only gets called after the scene-cluster has previously verified that the endpoint,cluster valuer pair is supported by
114
- // / the handler. It is therefore the implementation's reponsibility to also implement the SupportsCluster method.
113
+ // / @note Only gets called for handlers for which SupportsCluster() is true for the given endpoint and cluster.
115
114
virtual CHIP_ERROR Deserialize (EndpointId endpoint, ClusterId cluster, const ByteSpan & serializedBytes,
116
115
117
116
app::Clusters::Scenes::Structs::ExtensionFieldSet::Type & extensionFieldSet) = 0;
@@ -220,16 +219,16 @@ class SceneTable
220
219
221
220
bool operator ==(const SceneData & other)
222
221
{
223
- return (this -> mNameLength == other.mNameLength && !memcmp (this -> mName , other.mName , this -> mNameLength ) &&
224
- (this -> mSceneTransitionTimeMs == other.mSceneTransitionTimeMs ) &&
225
- (this -> mExtensionFieldSets == other.mExtensionFieldSets ));
222
+ return (mNameLength == other.mNameLength && !memcmp (mName , other.mName ,mNameLength ) &&
223
+ (mSceneTransitionTimeMs == other.mSceneTransitionTimeMs ) &&
224
+ (mExtensionFieldSets == other.mExtensionFieldSets ));
226
225
}
227
226
228
227
void operator =(const SceneData & other)
229
228
{
230
- this -> SetName (CharSpan (other.mName , other.mNameLength ));
231
- this -> mExtensionFieldSets = other.mExtensionFieldSets ;
232
- this -> mSceneTransitionTimeMs = other.mSceneTransitionTimeMs ;
229
+ SetName (CharSpan (other.mName , other.mNameLength ));
230
+ mExtensionFieldSets = other.mExtensionFieldSets ;
231
+ mSceneTransitionTimeMs = other.mSceneTransitionTimeMs ;
233
232
}
234
233
};
235
234
0 commit comments