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:
Sugar Glider 2025-03-10 16:21:25 -03:00 committed by GitHub
parent 2276f0b794
commit e680e7b538
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -66,8 +66,8 @@ 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;

View file

@ -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;