MCPcopy Create free account
hub / github.com/Atarity/Lightpack / restartPingDevice

Method restartPingDevice

Software/src/LedDeviceLightpack.cpp:456–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456void LedDeviceLightpack::restartPingDevice(bool isSuccess)
457{
458 Q_UNUSED(isSuccess);
459
460 if (Settings::isBacklightEnabled() && Settings::isPingDeviceEverySecond())
461 {
462 // Start ping device with PingDeviceInterval ms after last data transfer complete
463 m_timerPingDevice->start(kPingDeviceInterval);
464 } else {
465 m_timerPingDevice->stop();
466 }
467}
468
469void LedDeviceLightpack::timerPingDeviceTimeout()
470{

Callers

nothing calls this directly

Calls 2

startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected