Skip to content

Commit 4a8ab37

Browse files
authored
fix(matter): uninitialized fields warning
1 parent 4677ea6 commit 4a8ab37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/Matter/src/MatterEndpoints/MatterColorLight.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class MatterColorLight : public MatterEndPoint {
6666

6767
protected:
6868
bool started = false;
69-
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
70-
espHsvColor_t colorHSV = {0}; // default initial color HSV is black, but it can be changed by begin(bool, espHsvColor_t)
69+
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
70+
espHsvColor_t colorHSV = {0, 0, 0}; // default initial color HSV is black, but it can be changed by begin(bool, espHsvColor_t)
7171
EndPointOnOffCB _onChangeOnOffCB = NULL;
7272
EndPointRGBColorCB _onChangeColorCB = NULL;
7373
EndPointCB _onChangeCB = NULL;

0 commit comments

Comments
 (0)