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
@@ -124,11 +124,6 @@ EpdFont ui12RegularFont(&ubuntu_12_regular);
EpdFont ui12BoldFont(&ubuntu_12_bold);
EpdFontFamily ui12FontFamily(&ui12RegularFont, &ui12BoldFont);
void waitForPowerRelease() {
LOG_DBG("MAIN", "waitForPowerRelease: rawPin=%d", digitalRead(InputManager::POWER_BUTTON_PIN) == LOW);
gpio.waitForStablePowerRelease();
}
// Enter deep sleep mode
void enterDeepSleep() {
LOG_DBG("MAIN", "enterDeepSleep called at millis=%lu, powerBtn isPressed=%d, rawPin=%d", millis(),
@@ -265,9 +260,6 @@ void setup() {
APP_STATE.saveToFile();
activityManager.goToReader(path);
}
// Ensure we're not still holding the power button before leaving setup
waitForPowerRelease();
}
void loop() {