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

Commit 6cdaeb8

Browse files
committed
Merge pull request #147 from ntim/support_for_philips_hue
Support for philips hue
2 parents 664fc81 + 5f0b05c commit 6cdaeb8

File tree

3 files changed

+286
-248
lines changed

3 files changed

+286
-248
lines changed

libsrc/leddevice/LedDeviceFactory.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
165165
else if (type == "philipshue")
166166
{
167167
const std::string output = deviceConfig["output"].asString();
168-
device = new LedDevicePhilipsHue(output);
168+
const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool();
169+
device = new LedDevicePhilipsHue(output, switchOffOnBlack);
169170
}
170171
else if (type == "test")
171172
{

0 commit comments

Comments
 (0)