mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fixed bug in x86 compile
Former-commit-id: 022ed458e14a9692387ce382dbafb4cec4002c8e
This commit is contained in:
parent
990ca8ae69
commit
af08b9b5d0
@ -63,6 +63,16 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
|
|||||||
|
|
||||||
device = deviceLpd8806;
|
device = deviceLpd8806;
|
||||||
}
|
}
|
||||||
|
else if (type == "p9813")
|
||||||
|
{
|
||||||
|
const std::string output = deviceConfig["output"].asString();
|
||||||
|
const unsigned rate = deviceConfig["rate"].asInt();
|
||||||
|
|
||||||
|
LedDeviceP9813* deviceP9813 = new LedDeviceP9813(output, rate);
|
||||||
|
deviceP9813->open();
|
||||||
|
|
||||||
|
device = deviceP9813;
|
||||||
|
}
|
||||||
else if (type == "ws2801" || type == "lightberry")
|
else if (type == "ws2801" || type == "lightberry")
|
||||||
{
|
{
|
||||||
const std::string output = deviceConfig["output"].asString();
|
const std::string output = deviceConfig["output"].asString();
|
||||||
@ -146,16 +156,6 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
|
|||||||
|
|
||||||
device = deviceWs2812b;
|
device = deviceWs2812b;
|
||||||
}
|
}
|
||||||
else if (type == "p9813")
|
|
||||||
{
|
|
||||||
const std::string output = deviceConfig["output"].asString();
|
|
||||||
const unsigned rate = deviceConfig["rate"].asInt();
|
|
||||||
|
|
||||||
LedDeviceP9813* deviceP9813 = new LedDeviceP9813(output, rate);
|
|
||||||
deviceP9813->open();
|
|
||||||
|
|
||||||
device = deviceP9813;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cout << "Unable to create device " << type << std::endl;
|
std::cout << "Unable to create device " << type << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user