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
This commit is contained in:
parent
2276f0b794
commit
e680e7b538
2 changed files with 3 additions and 3 deletions
|
|
@ -67,7 +67,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
bool started = false;
|
bool started = false;
|
||||||
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
|
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
|
||||||
espHsvColor_t colorHSV = {0}; // default initial color HSV is black, but it can be changed by begin(bool, espHsvColor_t)
|
espHsvColor_t colorHSV = {0, 0, 0}; // default initial color HSV is black, but it can be changed by begin(bool, espHsvColor_t)
|
||||||
EndPointOnOffCB _onChangeOnOffCB = NULL;
|
EndPointOnOffCB _onChangeOnOffCB = NULL;
|
||||||
EndPointRGBColorCB _onChangeColorCB = NULL;
|
EndPointRGBColorCB _onChangeColorCB = NULL;
|
||||||
EndPointCB _onChangeCB = NULL;
|
EndPointCB _onChangeCB = NULL;
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ protected:
|
||||||
bool started = false;
|
bool started = false;
|
||||||
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
|
bool onOffState = false; // default initial state is off, but it can be changed by begin(bool)
|
||||||
uint8_t brightnessLevel = 0; // default initial brightness is 0, but it can be changed by begin(bool, uint8_t)
|
uint8_t brightnessLevel = 0; // default initial brightness is 0, but it can be changed by begin(bool, uint8_t)
|
||||||
espHsvColor_t colorHSV = {0}; // default initial color HSV is black, but it can be changed by begin(bool, uint8_t, espHsvColor_t)
|
espHsvColor_t colorHSV = {0, 0, 0}; // default initial color HSV is black, but it can be changed by begin(bool, uint8_t, espHsvColor_t)
|
||||||
uint16_t colorTemperatureLevel = 0; // default initial color temperature is 0, but it can be changed by begin(bool, uint8_t, espHsvColor_t, uint16_t)
|
uint16_t colorTemperatureLevel = 0; // default initial color temperature is 0, but it can be changed by begin(bool, uint8_t, espHsvColor_t, uint16_t)
|
||||||
EndPointOnOffCB _onChangeOnOffCB = NULL;
|
EndPointOnOffCB _onChangeOnOffCB = NULL;
|
||||||
EndPointBrightnessCB _onChangeBrightnessCB = NULL;
|
EndPointBrightnessCB _onChangeBrightnessCB = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue