mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Default setting of transition time to 100 ms.
Former-commit-id: c0981e09494c59456f45325cdcacf9bfa6e26c99
This commit is contained in:
parent
9d506b888d
commit
dfc2e6bfb5
@ -194,7 +194,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
|
||||
const std::string output = deviceConfig["output"].asString();
|
||||
const std::string username = deviceConfig.get("username", "newdeveloper").asString();
|
||||
const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool();
|
||||
const int transitiontime = deviceConfig.get("transitiontime", 4).asInt();
|
||||
const int transitiontime = deviceConfig.get("transitiontime", 1).asInt();
|
||||
device = new LedDevicePhilipsHue(output, username, switchOffOnBlack, transitiontime);
|
||||
}
|
||||
else if (type == "test")
|
||||
|
@ -132,7 +132,7 @@ public:
|
||||
/// @param transitiontime the time duration a light change takes in multiples of 100 ms (default: 400 ms).
|
||||
///
|
||||
LedDevicePhilipsHue(const std::string& output, const std::string& username = "newdeveloper", bool switchOffOnBlack =
|
||||
false, int transitiontime = 4);
|
||||
false, int transitiontime = 1);
|
||||
|
||||
///
|
||||
/// Destructor of this device
|
||||
|
Loading…
Reference in New Issue
Block a user