Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 260bcab

Browse files
committed
Fixed bug in leddevice factory
1 parent f7a4db1 commit 260bcab

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

deploy/hyperion.tar.gz

3.1 KB
Binary file not shown.

libsrc/leddevice/LedDeviceFactory.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
#include <HyperionConfig.h>
3+
24
// Leddevice includes
35
#include <leddevice/LedDeviceFactory.h>
46

@@ -76,13 +78,13 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
7678

7779
// device = deviceWs2811;
7880
// }
79-
else if (type == "ws2812b")
80-
{
81-
LedDeviceWs2812b * deviceWs2812b = new LedDeviceWs2812b();
82-
deviceWs2812b->open();
81+
else if (type == "ws2812b")
82+
{
83+
LedDeviceWs2812b * deviceWs2812b = new LedDeviceWs2812b();
84+
deviceWs2812b->open();
8385

84-
device = deviceWs2812b;
85-
}
86+
device = deviceWs2812b;
87+
}
8688
else if (type == "adalight")
8789
{
8890
const std::string output = deviceConfig["output"].asString();

0 commit comments

Comments
 (0)