fixed uninitialiazed effect

This commit is contained in:
bernhard.trinnes 2020-08-11 12:29:11 +02:00
parent ea8f37ef83
commit 9dbb943fab

View File

@ -360,7 +360,7 @@ void IntegrationPluginLifx::executeAction(ThingActionInfo *info)
} }
QString effectString = action.param(colorBulbEffectActionEffectParamTypeId).value().toString(); QString effectString = action.param(colorBulbEffectActionEffectParamTypeId).value().toString();
int requestId; int requestId;
LifxCloud::Effect effect; LifxCloud::Effect effect = LifxCloud::EffectNone;
if (effectString == "None") { if (effectString == "None") {
effect = LifxCloud::EffectNone; effect = LifxCloud::EffectNone;
} else if (effectString == "Breathe") { } else if (effectString == "Breathe") {