Fast wakeup (not waiting for button release)

This commit is contained in:
jpirnay
2026-04-06 10:07:50 +02:00
parent 633cc04f41
commit 4f00ed6348
2 changed files with 0 additions and 16 deletions
-8
View File
@@ -240,14 +240,6 @@ void HalGPIO::waitForStablePowerRelease() {
delay(10);
}
LOG_DBG("GPIO", "Power button stable-released after %lu ms", millis() - waitStart);
// Flush the InputManager debounced state to match reality.
// A single update() is insufficient: if lastState was stale ("pressed"), the first
// call resets the debounce timer but cannot update currentState until a second call
// arrives after DEBOUNCE_DELAY (5 ms). Without this, isPressed() / getHeldTime()
// would carry stale values into the next loop() iteration.
inputMgr.update();
delay(10); // > InputManager DEBOUNCE_DELAY (5 ms)
inputMgr.update();
}
void HalGPIO::startDeepSleep() {