mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
SIGUSR1/SIGUSR2 implemented again (#725)
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
This commit is contained in:
@@ -115,8 +115,6 @@ unsigned int getProcessIdsByProcessName(const char* processName, QStringList &li
|
||||
|
||||
void signal_handler(const int signum)
|
||||
{
|
||||
// SIGUSR1 and SIGUSR2 must be rewritten
|
||||
|
||||
// Hyperion Managment instance
|
||||
HyperionIManager* _hyperion = HyperionIManager::getInstance();
|
||||
|
||||
@@ -130,8 +128,7 @@ void signal_handler(const int signum)
|
||||
{
|
||||
if (_hyperion != nullptr)
|
||||
{
|
||||
// _hyperion->setComponentState(hyperion::COMP_SMOOTHING, false);
|
||||
// _hyperion->setComponentState(hyperion::COMP_LEDDEVICE, false);
|
||||
_hyperion->toggleStateAllInstances(false);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -139,8 +136,7 @@ void signal_handler(const int signum)
|
||||
{
|
||||
if (_hyperion != nullptr)
|
||||
{
|
||||
// _hyperion->setComponentState(hyperion::COMP_LEDDEVICE, true);
|
||||
// _hyperion->setComponentState(hyperion::COMP_SMOOTHING, true);
|
||||
_hyperion->toggleStateAllInstances(true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user