sk6812 white_algorithm json parsing bug

This commit is contained in:
penfold42 2018-12-31 16:09:21 +11:00
parent b048771e4a
commit b77e7c4acd

View File

@ -21,7 +21,7 @@ LedDevice* LedDeviceSk6812SPI::construct(const QJsonObject &deviceConfig)
bool LedDeviceSk6812SPI::init(const QJsonObject &deviceConfig) bool LedDeviceSk6812SPI::init(const QJsonObject &deviceConfig)
{ {
QString whiteAlgorithm = deviceConfig["white_algorithm"].toString("white_off"); QString whiteAlgorithm = deviceConfig["whiteAlgorithm"].toString("white_off");
_whiteAlgorithm = RGBW::stringToWhiteAlgorithm(whiteAlgorithm); _whiteAlgorithm = RGBW::stringToWhiteAlgorithm(whiteAlgorithm);
if (_whiteAlgorithm == RGBW::INVALID) if (_whiteAlgorithm == RGBW::INVALID)