mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
General tidy up
This commit is contained in:
@@ -117,10 +117,7 @@ YeelightLight::YeelightLight( Logger *log, const QString &hostname, quint16 port
|
||||
YeelightLight::~YeelightLight()
|
||||
{
|
||||
log (3,"~YeelightLight()","" );
|
||||
if ( _tcpSocket != nullptr)
|
||||
{
|
||||
delete _tcpSocket;
|
||||
}
|
||||
delete _tcpSocket;
|
||||
log (2,"~YeelightLight()","void" );
|
||||
}
|
||||
|
||||
@@ -968,7 +965,7 @@ void YeelightLight::log(const int logLevel, const char* msg, const char* type, .
|
||||
//---------------------------------------------------------------------------------
|
||||
|
||||
LedDeviceYeelight::LedDeviceYeelight(const QJsonObject &deviceConfig)
|
||||
: LedDevice()
|
||||
: LedDevice(deviceConfig)
|
||||
,_lightsCount (0)
|
||||
,_outputColorModel(0)
|
||||
,_transitionEffect(YeelightLight::API_EFFECT_SMOOTH)
|
||||
@@ -982,10 +979,6 @@ LedDeviceYeelight::LedDeviceYeelight(const QJsonObject &deviceConfig)
|
||||
,_debuglevel(0)
|
||||
,_musicModeServerPort(-1)
|
||||
{
|
||||
_devConfig = deviceConfig;
|
||||
_isDeviceReady = false;
|
||||
|
||||
_activeDeviceType = deviceConfig["type"].toString("UNSPECIFIED").toLower();
|
||||
}
|
||||
|
||||
LedDeviceYeelight::~LedDeviceYeelight()
|
||||
|
Reference in New Issue
Block a user