mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix - Nanoleaf crashes hyperion
This commit is contained in:
parent
3a2b58b571
commit
0c16293319
@ -256,11 +256,18 @@ int LedDeviceNanoleaf::open()
|
|||||||
|
|
||||||
if ( init(_devConfig) )
|
if ( init(_devConfig) )
|
||||||
{
|
{
|
||||||
if ( initLeds() )
|
if ( !initNetwork() )
|
||||||
{
|
{
|
||||||
_deviceReady = true;
|
this->setInError( "UDP Network error!" );
|
||||||
setEnable(true);
|
}
|
||||||
retval = 0;
|
else
|
||||||
|
{
|
||||||
|
if ( initLeds() )
|
||||||
|
{
|
||||||
|
_deviceReady = true;
|
||||||
|
setEnable(true);
|
||||||
|
retval = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return retval;
|
return retval;
|
||||||
|
Loading…
Reference in New Issue
Block a user