mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
* Save BLACK as lastLedColor during writeBlack
* Remove debug statement overhead
* Re-Add typecasting to ensure readable output
* Revert "New language support: Russian and Chinese (simplified)"
This reverts commit 5c95fab894
.
* Ignore TemporaryError
This commit is contained in:
@@ -983,10 +983,7 @@ LedDeviceYeelight::LedDeviceYeelight(const QJsonObject &deviceConfig)
|
||||
|
||||
LedDeviceYeelight::~LedDeviceYeelight()
|
||||
{
|
||||
if ( _tcpMusicModeServer != nullptr )
|
||||
{
|
||||
delete _tcpMusicModeServer;
|
||||
}
|
||||
}
|
||||
|
||||
LedDevice* LedDeviceYeelight::construct(const QJsonObject &deviceConfig)
|
||||
@@ -1448,10 +1445,18 @@ int LedDeviceYeelight::write(const std::vector<ColorRgb> & ledValues)
|
||||
}
|
||||
else
|
||||
{
|
||||
QString errorReason = QString ("(%1) %2").arg(_tcpMusicModeServer->serverError()).arg( _tcpMusicModeServer->errorString());
|
||||
Warning( _log, "write Error [%s]: _tcpMusicModeServer: %s", QSTRING_CSTR(light.getName()), QSTRING_CSTR(errorReason));
|
||||
light.setInError("Failed to get stream socket");
|
||||
}
|
||||
QString errorReason = QString("(%1) %2").arg(_tcpMusicModeServer->serverError()).arg(_tcpMusicModeServer->errorString());
|
||||
if (_tcpMusicModeServer->serverError() == QAbstractSocket::TemporaryError)
|
||||
{
|
||||
Info(_log, "Ignore write Error [%s]: _tcpMusicModeServer: %s", QSTRING_CSTR(light.getName()), QSTRING_CSTR(errorReason));
|
||||
skipWrite = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Warning(_log, "write Error [%s]: _tcpMusicModeServer: %s", QSTRING_CSTR(light.getName()), QSTRING_CSTR(errorReason));
|
||||
light.setInError("Failed to get stream socket");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user