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 ( initLeds() )
|
||||
if ( !initNetwork() )
|
||||
{
|
||||
_deviceReady = true;
|
||||
setEnable(true);
|
||||
retval = 0;
|
||||
this->setInError( "UDP Network error!" );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( initLeds() )
|
||||
{
|
||||
_deviceReady = true;
|
||||
setEnable(true);
|
||||
retval = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
|
Loading…
Reference in New Issue
Block a user