mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
parent
2410c6021e
commit
0e6866fb23
@ -5,7 +5,6 @@ LedDeviceAdalight::LedDeviceAdalight(const QJsonObject &deviceConfig)
|
||||
, _ligthBerryAPA102Mode(false)
|
||||
{
|
||||
_deviceReady = init(deviceConfig);
|
||||
_ligthBerryAPA102Mode = deviceConfig["lightberry_apa102_mode"].toBool(false);
|
||||
}
|
||||
|
||||
LedDevice* LedDeviceAdalight::construct(const QJsonObject &deviceConfig)
|
||||
@ -16,6 +15,7 @@ LedDevice* LedDeviceAdalight::construct(const QJsonObject &deviceConfig)
|
||||
bool LedDeviceAdalight::init(const QJsonObject &deviceConfig)
|
||||
{
|
||||
ProviderRs232::init(deviceConfig);
|
||||
_ligthBerryAPA102Mode = deviceConfig["lightberry_apa102_mode"].toBool(false);
|
||||
|
||||
// create ledBuffer
|
||||
unsigned int bufferSize = 6; // 6 bytes header
|
||||
|
Loading…
Reference in New Issue
Block a user