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

Commit c0981e0

Browse files
author
Tim Niggemann
committed
Default setting of transition time to 100 ms.
1 parent 2ae179c commit c0981e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libsrc/leddevice/LedDeviceFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
194194
const std::string output = deviceConfig["output"].asString();
195195
const std::string username = deviceConfig.get("username", "newdeveloper").asString();
196196
const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool();
197-
const int transitiontime = deviceConfig.get("transitiontime", 4).asInt();
197+
const int transitiontime = deviceConfig.get("transitiontime", 1).asInt();
198198
device = new LedDevicePhilipsHue(output, username, switchOffOnBlack, transitiontime);
199199
}
200200
else if (type == "test")

libsrc/leddevice/LedDevicePhilipsHue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Q_OBJECT
132132
/// @param transitiontime the time duration a light change takes in multiples of 100 ms (default: 400 ms).
133133
///
134134
LedDevicePhilipsHue(const std::string& output, const std::string& username = "newdeveloper", bool switchOffOnBlack =
135-
false, int transitiontime = 4);
135+
false, int transitiontime = 1);
136136

137137
///
138138
/// Destructor of this device

0 commit comments

Comments
 (0)