fix jsonrpc (1/2)

NO CI no ci [no ci]
This commit is contained in:
brindosch 2016-08-25 13:52:31 +02:00 committed by GitHub
parent bb94a21c83
commit 13cc053d99

View File

@ -561,6 +561,8 @@ void JsonClientConnection::handleServerInfoCommand(const Json::Value &, const st
Json::Value & activeEffects = info["activeEffects"] = Json::Value(Json::arrayValue);
const std::list<ActiveEffectDefinition> & activeEffectsDefinitions = _hyperion->getActiveEffects();
for (const ActiveEffectDefinition & activeEffectDefinition : activeEffectsDefinitions)
{
if (activeEffectDefinition.priority != PriorityMuxer::LOWEST_PRIORITY -1)
{
Json::Value activeEffect;
activeEffect["script"] = activeEffectDefinition.script;
@ -570,6 +572,7 @@ void JsonClientConnection::handleServerInfoCommand(const Json::Value &, const st
activeEffects.append(activeEffect);
}
}
////////////////////////////////////
// collect active static led color//