Fixed bug in leddevice factory

Former-commit-id: 260bcab6a2d7c521987667e263dbeae2997ebd1e
This commit is contained in:
T. van der Zwan 2013-12-29 19:43:01 +00:00
parent 434f3e46bb
commit 4fe1a8de85
2 changed files with 8 additions and 6 deletions

Binary file not shown.

View File

@ -1,4 +1,6 @@
#include <HyperionConfig.h>
// Leddevice includes
#include <leddevice/LedDeviceFactory.h>
@ -76,13 +78,13 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
// device = deviceWs2811;
// }
else if (type == "ws2812b")
{
LedDeviceWs2812b * deviceWs2812b = new LedDeviceWs2812b();
deviceWs2812b->open();
else if (type == "ws2812b")
{
LedDeviceWs2812b * deviceWs2812b = new LedDeviceWs2812b();
deviceWs2812b->open();
device = deviceWs2812b;
}
device = deviceWs2812b;
}
else if (type == "adalight")
{
const std::string output = deviceConfig["output"].asString();