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