mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fixing outstanding issues (#1537)
* Correct stopEnableAttemptsTimer thread affinity * Restart correctly, if running as service * Add instance# in API response * Qt6 updates * Update fallthrough guide * Update Compile warning
This commit is contained in:
@@ -67,8 +67,6 @@ LedDevice::LedDevice(const QJsonObject& deviceConfig, QObject* parent)
|
||||
|
||||
LedDevice::~LedDevice()
|
||||
{
|
||||
this->stopEnableAttemptsTimer();
|
||||
this->stopRefreshTimer();
|
||||
}
|
||||
|
||||
void LedDevice::start()
|
||||
@@ -97,6 +95,7 @@ void LedDevice::start()
|
||||
void LedDevice::stop()
|
||||
{
|
||||
Debug(_log, "Stop device");
|
||||
this->stopEnableAttemptsTimer();
|
||||
this->disable();
|
||||
this->stopRefreshTimer();
|
||||
Info(_log, " Stopped LedDevice '%s'", QSTRING_CSTR(_activeDeviceType));
|
||||
|
@@ -95,9 +95,9 @@ void LedDeviceAdalight::prepareHeader()
|
||||
|
||||
case Adalight::AWA:
|
||||
_bufferLength += 7;
|
||||
[[clang::fallthrough]];
|
||||
[[fallthrough]];
|
||||
case Adalight::ADA:
|
||||
[[clang::fallthrough]];
|
||||
[[fallthrough]];
|
||||
default:
|
||||
totalLedCount -= 1;
|
||||
_ledBuffer.resize(static_cast<size_t>(_bufferLength), 0x00);
|
||||
|
Reference in New Issue
Block a user