Default setting of transition time to 100 ms.

Former-commit-id: c0981e09494c59456f45325cdcacf9bfa6e26c99
This commit is contained in:
Tim Niggemann 2015-02-01 15:56:51 +01:00
parent 9d506b888d
commit dfc2e6bfb5
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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