From b77e7c4acd014202b673d0996cebbe4fa16ba91d Mon Sep 17 00:00:00 2001 From: penfold42 Date: Mon, 31 Dec 2018 16:09:21 +1100 Subject: [PATCH] sk6812 white_algorithm json parsing bug --- libsrc/leddevice/dev_spi/LedDeviceSk6812SPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/leddevice/dev_spi/LedDeviceSk6812SPI.cpp b/libsrc/leddevice/dev_spi/LedDeviceSk6812SPI.cpp index 2c98a5b6..f995ba9a 100644 --- a/libsrc/leddevice/dev_spi/LedDeviceSk6812SPI.cpp +++ b/libsrc/leddevice/dev_spi/LedDeviceSk6812SPI.cpp @@ -21,7 +21,7 @@ LedDevice* LedDeviceSk6812SPI::construct(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); if (_whiteAlgorithm == RGBW::INVALID)