mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Add setting to log
This commit is contained in:
parent
7bf2ad2cbf
commit
bc560b90d6
@ -25,8 +25,10 @@ bool LedDeviceSk6812_ftdi::init(const QJsonObject &deviceConfig)
|
|||||||
if (ProviderFtdi::init(deviceConfig))
|
if (ProviderFtdi::init(deviceConfig))
|
||||||
{
|
{
|
||||||
_brightnessControlMaxLevel = deviceConfig["brightnessControlMaxLevel"].toInt(255);
|
_brightnessControlMaxLevel = deviceConfig["brightnessControlMaxLevel"].toInt(255);
|
||||||
|
Info(_log, "[%s] Setting maximum brightness to [%d]", QSTRING_CSTR(_activeDeviceType), _brightnessControlMaxLevel);
|
||||||
|
|
||||||
QString whiteAlgorithm = deviceConfig["whiteAlgorithm"].toString("white_off");
|
|
||||||
|
QString whiteAlgorithm = deviceConfig["whiteAlgorithm"].toString("white_off");
|
||||||
|
|
||||||
_whiteAlgorithm = RGBW::stringToWhiteAlgorithm(whiteAlgorithm);
|
_whiteAlgorithm = RGBW::stringToWhiteAlgorithm(whiteAlgorithm);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user