Caching of spine item sizes for faster book loading (saves 1-4 seconds). (#54)

As discussed in
https://github.com/daveallie/crosspoint-reader/pull/38#issuecomment-3665142427,
#38
This commit is contained in:
Jonas Diemer
2025-12-18 12:49:14 +01:00
committed by GitHub
parent 57fdb1c0fb
commit 424594488f
3 changed files with 45 additions and 13 deletions

View File

@@ -216,7 +216,7 @@ void loop() {
return;
}
if (inputManager.wasReleased(InputManager::BTN_POWER) && inputManager.getHeldTime() > POWER_BUTTON_WAKEUP_MS) {
if (inputManager.wasReleased(InputManager::BTN_POWER) && inputManager.getHeldTime() > POWER_BUTTON_SLEEP_MS) {
enterDeepSleep();
// This should never be hit as `enterDeepSleep` calls esp_deep_sleep_start
return;