correct initialization of variable rgb[]

pull/472/head
Def3nder 2019-12-16 15:39:38 +01:00
rodzic 0e4bca2550
commit fbe35deee2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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