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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user