Restructured Lightpack device (fix bug concerning the lifecycle of the libusb context)

Former-commit-id: ef7187e9117d75208e4d79b9f64839f88044a3c2
This commit is contained in:
johan
2013-11-20 20:54:04 +01:00
parent d60cca9e20
commit 409b800a8e
6 changed files with 155 additions and 99 deletions

View File

@@ -89,8 +89,8 @@ LedDevice* Hyperion::createDevice(const Json::Value& deviceConfig)
{
const std::string output = deviceConfig.get("output", "").asString();
LedDeviceLightpack* deviceLightpack = new LedDeviceLightpack(output);
deviceLightpack->open();
LedDeviceLightpack* deviceLightpack = new LedDeviceLightpack();
deviceLightpack->open(output);
device = deviceLightpack;
}