MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / setInError

Method setInError

sources/led-drivers/LedDevice.cpp:317–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void LedDevice::setInError(const QString& errorMsg)
318{
319 _isOn = false;
320 _isDeviceInError = true;
321 _isDeviceReady = false;
322 _isEnabled = false;
323 this->stopRefreshTimer();
324
325 Error(_log, "Device '%s' is disabled due to an error: '%s'", QSTRING_CSTR(_activeDeviceType), QSTRING_CSTR(errorMsg));
326 emit SignalEnableStateChanged(_isEnabled);
327}
328
329void LedDevice::setActiveDeviceType(const QString& deviceType)
330{

Callers

nothing calls this directly

Calls 1

stopRefreshTimerMethod · 0.95

Tested by

no test coverage detected