fix(reader): remove pre-generation of cover BMP during book load

Cover BMP generation during book load could crash and prevent opening books.
Let the cover be generated on-demand when entering sleep instead.
This commit is contained in:
Eunchurn Park 2025-12-26 12:49:40 +09:00
parent e9ffe1a39e
commit 7f7076be8c
No known key found for this signature in database
GPG Key ID: 29D94D9C697E3F92

View File

@ -15,10 +15,6 @@ std::unique_ptr<Epub> ReaderActivity::loadEpub(const std::string& path) {
auto epub = std::unique_ptr<Epub>(new Epub(path, "/.crosspoint"));
if (epub->load()) {
// Pre-generate cover BMP for sleep screen (so it's cached when entering sleep)
if (!epub->generateCoverBmp()) {
Serial.printf("[%lu] [RDR] Cover BMP generation skipped or failed\n", millis());
}
return epub;
}