Skip to content

Commit e680e7b

Browse files
authored
fix(matter): removes a few matter 1.4 / IDF 5.4 compilation warning messages (#11067)
* fix(matter): uninitialized fields warning * fix(matter): uninitialized fields warning
1 parent 2276f0b commit e680e7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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;

libraries/Matter/src/MatterEndpoints/MatterEnhancedColorLight.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class MatterEnhancedColorLight : public MatterEndPoint {
9191
bool started = false;
9292
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
9393
uint8_t brightnessLevel = 0; // default initial brightness is 0, but it can be changed by begin(bool, uint8_t)
94-
espHsvColor_t colorHSV = {0}; // default initial color HSV is black, but it can be changed by begin(bool, uint8_t, espHsvColor_t)
94+
espHsvColor_t colorHSV = {0, 0, 0}; // default initial color HSV is black, but it can be changed by begin(bool, uint8_t, espHsvColor_t)
9595
uint16_t colorTemperatureLevel = 0; // default initial color temperature is 0, but it can be changed by begin(bool, uint8_t, espHsvColor_t, uint16_t)
9696
EndPointOnOffCB _onChangeOnOffCB = NULL;
9797
EndPointBrightnessCB _onChangeBrightnessCB = NULL;

0 commit comments

Comments
 (0)