fix stack task size after bad merge

This commit is contained in:
Jérôme Launay 2025-12-17 23:23:35 +01:00
parent b042e3c790
commit b2985f87d3
2 changed files with 4 additions and 2 deletions

View File

@ -414,6 +414,7 @@ int Epub::findVirtualSpineIndex(const std::string& filename) const {
}
return -1;
}
size_t Epub::getBookSize() const { return getCumulativeSpineItemSize(getSpineItemsCount() - 1); }
// Calculate progress in book

View File

@ -46,13 +46,14 @@ void EpubReaderActivity::onEnter() {
nextPageNumber = data[2] + (data[3] << 8);
Serial.printf("[%lu] [ERS] Loaded cache: %d, %d\n", millis(), currentSpineIndex, nextPageNumber);
f.close();
f.close();
}
// Trigger first update
updateRequired = true;
xTaskCreate(&EpubReaderActivity::taskTrampoline, "EpubReaderActivityTask",
8192, // Stack size
24576, // Stack size
this, // Parameters
1, // Priority
&displayTaskHandle // Task handle