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

Method disableDevice

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

Source from the content-addressed store, hash-verified

298}
299
300void LedDevice::disableDevice(bool toEmit)
301{
302 if (_isEnabled)
303 {
304 _isEnabled = false;
305
306 if (_isRefreshEnabled)
307 this->stopRefreshTimer();
308
309 switchOff();
310 close();
311
312 if (toEmit)
313 emit SignalEnableStateChanged(_isEnabled);
314 }
315}
316
317void LedDevice::setInError(const QString& errorMsg)
318{

Callers

nothing calls this directly

Calls 1

stopRefreshTimerMethod · 0.95

Tested by

no test coverage detected