Added serial number parameter to lightpack

Former-commit-id: 38e7b0b32119c6b2d62d5f07d48156cbd8052306
This commit is contained in:
johan 2013-11-13 23:10:11 +01:00
parent fe1dd23768
commit d9a66b3e6d

View File

@ -86,7 +86,9 @@ LedDevice* Hyperion::createDevice(const Json::Value& deviceConfig)
} }
else if (type == "lightpack") else if (type == "lightpack")
{ {
LedDeviceLightpack* deviceLightpack = new LedDeviceLightpack(); const std::string output = deviceConfig.get("output", "").asString();
LedDeviceLightpack* deviceLightpack = new LedDeviceLightpack(output);
deviceLightpack->open(); deviceLightpack->open();
device = deviceLightpack; device = deviceLightpack;