Bugfix sync with hyperion repo (#110)

* #702  if led color not black

* colorless backlight #707
This commit is contained in:
brindosch
2016-07-12 23:33:30 +02:00
committed by GitHub
parent 48d20529d3
commit 1cf7fd545e
2 changed files with 4 additions and 4 deletions

View File

@@ -532,9 +532,9 @@ void JsonClientConnection::handleServerInfoCommand(const Json::Value &)
} ))
{
// check if LED Color not Black (0,0,0)
if ((priorityInfo.ledColors.begin()->red != 0) &&
(priorityInfo.ledColors.begin()->green != 0) &&
(priorityInfo.ledColors.begin()->blue != 0))
if ((priorityInfo.ledColors.begin()->red +
priorityInfo.ledColors.begin()->green +
priorityInfo.ledColors.begin()->blue != 0))
{
// add RGB Value to Array
LEDcolor["RGB Value"].append(priorityInfo.ledColors.begin()->red);