From c16ecde539a75dc7384b2e48dff766eb5ffcd632 Mon Sep 17 00:00:00 2001 From: LordGrey Date: Tue, 9 Apr 2019 21:14:12 +0200 Subject: [PATCH] Call switchOn, if LEDs get enabled again * Support devices which allow to be switched on/off physically, rather than have a black output stream. --- libsrc/leddevice/LedDevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libsrc/leddevice/LedDevice.cpp b/libsrc/leddevice/LedDevice.cpp index 45331853..410c85cb 100644 --- a/libsrc/leddevice/LedDevice.cpp +++ b/libsrc/leddevice/LedDevice.cpp @@ -52,6 +52,12 @@ void LedDevice::setEnable(bool enable) { switchOff(); } + else { + if ( !_enabled && enable) + { + switchOn(); + } + } _enabled = enable; }