Fix #676 (#679) LedDevice Open() did not initialised the device correctly.

* Cast fix
* Fix #676
This commit is contained in:
LordGrey
2020-02-14 21:58:10 +01:00
committed by GitHub
parent ed5455458b
commit 0fa5a24cec
4 changed files with 33 additions and 13 deletions

View File

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