kopia lustrzana https://github.com/Aircoookie/WLED
correct initialization of variable rgb[]
rodzic
0e4bca2550
commit
fbe35deee2
|
|
@ -122,7 +122,7 @@ uint32_t EspalexaDevice::getKelvin()
|
|||
uint32_t EspalexaDevice::getRGB()
|
||||
{
|
||||
if (_rgb != 0) return _rgb; //color has not changed
|
||||
uint8_t rgb[4];
|
||||
byte rgb[4]{0, 0, 0, 0};
|
||||
float r, g, b, w;
|
||||
|
||||
if (_mode == EspalexaColorMode::none) return 0;
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue