Add SIGUSR1 and SIGUSR2 signals to disable/enable the LEDs

Fixed enable on LedDeviceWrapper constructor.
This commit is contained in:
Portisch
2019-04-19 06:22:23 +00:00
parent 48aee89032
commit 0e756beae4
3 changed files with 26 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ LedDeviceWrapper::LedDeviceWrapper(Hyperion* hyperion)
: QObject(hyperion)
, _hyperion(hyperion)
, _ledDevice(nullptr)
, _enabled(true)
{
// prepare the device constrcutor map
#define REGISTER(className) LedDeviceWrapper::addToDeviceMap(QString(#className).toLower(), LedDevice##className::construct);