mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Corrected indenting in LedDeviceFactory.cpp.
Former-commit-id: 31713a4a0ce9bd25fd1e39969bbb481363a80167
This commit is contained in:
parent
e5545eaac0
commit
f783c59185
@ -248,15 +248,15 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
|
|||||||
}
|
}
|
||||||
else if (type == "atmoorb")
|
else if (type == "atmoorb")
|
||||||
{
|
{
|
||||||
const std::string output = deviceConfig["output"].asString();
|
const std::string output = deviceConfig["output"].asString();
|
||||||
const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool();
|
const bool switchOffOnBlack = deviceConfig.get("switchOffOnBlack", true).asBool();
|
||||||
const int transitiontime = deviceConfig.get("transitiontime", 1).asInt();
|
const int transitiontime = deviceConfig.get("transitiontime", 1).asInt();
|
||||||
const int port = deviceConfig.get("port", 1).asInt();
|
const int port = deviceConfig.get("port", 1).asInt();
|
||||||
const int numLeds = deviceConfig.get("numLeds", 1).asInt();
|
const int numLeds = deviceConfig.get("numLeds", 1).asInt();
|
||||||
|
|
||||||
std::vector<unsigned int> orbIds;
|
std::vector<unsigned int> orbIds;
|
||||||
for (Json::Value::ArrayIndex i = 0; i < deviceConfig["orbIds"].size(); i++) {
|
for (Json::Value::ArrayIndex i = 0; i < deviceConfig["orbIds"].size(); i++) {
|
||||||
orbIds.push_back(deviceConfig["orbIds"][i].asInt());
|
orbIds.push_back(deviceConfig["orbIds"][i].asInt());
|
||||||
}
|
}
|
||||||
|
|
||||||
device = new LedDeviceAtmoOrb(output, switchOffOnBlack, transitiontime, port, numLeds, orbIds);
|
device = new LedDeviceAtmoOrb(output, switchOffOnBlack, transitiontime, port, numLeds, orbIds);
|
||||||
|
Loading…
Reference in New Issue
Block a user