mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
* Cast fix * Fix #676
This commit is contained in:
@@ -11,6 +11,11 @@ LedDeviceWS281x::~LedDeviceWS281x()
|
||||
{
|
||||
}
|
||||
|
||||
LedDevice* LedDeviceWS281x::construct(const QJsonObject &deviceConfig)
|
||||
{
|
||||
return new LedDeviceWS281x(deviceConfig);
|
||||
}
|
||||
|
||||
bool LedDeviceWS281x::init(const QJsonObject &deviceConfig)
|
||||
{
|
||||
QString errortext;
|
||||
@@ -84,11 +89,6 @@ void LedDeviceWS281x::close()
|
||||
}
|
||||
}
|
||||
|
||||
LedDevice* LedDeviceWS281x::construct(const QJsonObject &deviceConfig)
|
||||
{
|
||||
return new LedDeviceWS281x(deviceConfig);
|
||||
}
|
||||
|
||||
// Send new values down the LED chain
|
||||
int LedDeviceWS281x::write(const std::vector<ColorRgb> &ledValues)
|
||||
{
|
||||
|
Reference in New Issue
Block a user