MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / getPowerButtonHeldTime

Method getPowerButtonHeldTime

lib/hal/HalGPIO.cpp:226–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224unsigned long HalGPIO::getHeldTime() const { return inputMgr.getHeldTime(); }
225
226unsigned long HalGPIO::getPowerButtonHeldTime() const { return inputMgr.getPowerButtonHeldTime(); }
227
228void HalGPIO::startDeepSleep() {
229 // Ensure that the power button has been released to avoid immediately turning back on if you're holding it

Callers 3

loopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected