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 22:49:14 +11:00
committed by GitHub
parent 1ef193ac50
commit 27cc8b4a6d
3 changed files with 45 additions and 13 deletions
+1 -1
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;