From d9a66b3e6d508a3a49865e997757fd86cf080876 Mon Sep 17 00:00:00 2001 From: johan Date: Wed, 13 Nov 2013 23:10:11 +0100 Subject: [PATCH] Added serial number parameter to lightpack Former-commit-id: 38e7b0b32119c6b2d62d5f07d48156cbd8052306 --- libsrc/hyperion/Hyperion.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsrc/hyperion/Hyperion.cpp b/libsrc/hyperion/Hyperion.cpp index e781c0a6..124e15b3 100644 --- a/libsrc/hyperion/Hyperion.cpp +++ b/libsrc/hyperion/Hyperion.cpp @@ -86,7 +86,9 @@ LedDevice* Hyperion::createDevice(const Json::Value& deviceConfig) } else if (type == "lightpack") { - LedDeviceLightpack* deviceLightpack = new LedDeviceLightpack(); + const std::string output = deviceConfig.get("output", "").asString(); + + LedDeviceLightpack* deviceLightpack = new LedDeviceLightpack(output); deviceLightpack->open(); device = deviceLightpack;