mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix jsonrpc (1/2)
NO CI no ci [no ci]
This commit is contained in:
parent
bb94a21c83
commit
13cc053d99
@ -561,6 +561,8 @@ void JsonClientConnection::handleServerInfoCommand(const Json::Value &, const st
|
|||||||
Json::Value & activeEffects = info["activeEffects"] = Json::Value(Json::arrayValue);
|
Json::Value & activeEffects = info["activeEffects"] = Json::Value(Json::arrayValue);
|
||||||
const std::list<ActiveEffectDefinition> & activeEffectsDefinitions = _hyperion->getActiveEffects();
|
const std::list<ActiveEffectDefinition> & activeEffectsDefinitions = _hyperion->getActiveEffects();
|
||||||
for (const ActiveEffectDefinition & activeEffectDefinition : activeEffectsDefinitions)
|
for (const ActiveEffectDefinition & activeEffectDefinition : activeEffectsDefinitions)
|
||||||
|
{
|
||||||
|
if (activeEffectDefinition.priority != PriorityMuxer::LOWEST_PRIORITY -1)
|
||||||
{
|
{
|
||||||
Json::Value activeEffect;
|
Json::Value activeEffect;
|
||||||
activeEffect["script"] = activeEffectDefinition.script;
|
activeEffect["script"] = activeEffectDefinition.script;
|
||||||
@ -570,6 +572,7 @@ void JsonClientConnection::handleServerInfoCommand(const Json::Value &, const st
|
|||||||
|
|
||||||
activeEffects.append(activeEffect);
|
activeEffects.append(activeEffect);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////
|
////////////////////////////////////
|
||||||
// collect active static led color//
|
// collect active static led color//
|
||||||
|
Loading…
Reference in New Issue
Block a user