mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Call switchOn, if LEDs get enabled again
* Support devices which allow to be switched on/off physically, rather than have a black output stream.
This commit is contained in:
parent
3661172d6d
commit
c16ecde539
@ -52,6 +52,12 @@ void LedDevice::setEnable(bool enable)
|
||||
{
|
||||
switchOff();
|
||||
}
|
||||
else {
|
||||
if ( !_enabled && enable)
|
||||
{
|
||||
switchOn();
|
||||
}
|
||||
}
|
||||
_enabled = enable;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user