| 315 | } |
| 316 | |
| 317 | void 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 | |
| 329 | void LedDevice::setActiveDeviceType(const QString& deviceType) |
| 330 | { |
nothing calls this directly
no test coverage detected