A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Small cleanup

+1 -4
-1
lib/EpdFont/EpdFont.cpp
··· 5 5 inline int min(const int a, const int b) { return a < b ? a : b; } 6 6 inline int max(const int a, const int b) { return a < b ? b : a; } 7 7 8 - // TODO: Text properties?? 9 8 void EpdFont::getTextBounds(const char* string, const int startX, const int startY, int* minX, int* minY, int* maxX, 10 9 int* maxY) const { 11 10 *minX = startX;
-2
lib/Epub/Epub/Section.cpp
··· 12 12 Serial.printf("Page %d complete\n", pageCount); 13 13 14 14 const auto filePath = cachePath + "/page_" + std::to_string(pageCount) + ".bin"; 15 - // TODO can this be removed? 16 - SD.open(filePath.c_str(), FILE_WRITE).close(); 17 15 18 16 std::ofstream outputFile("/sd" + filePath); 19 17 page->serialize(outputFile);
+1 -1
src/main.cpp
··· 205 205 delay(10); 206 206 207 207 static unsigned long lastMemPrint = 0; 208 - if (Serial && millis() - lastMemPrint >= 2000) { 208 + if (Serial && millis() - lastMemPrint >= 5000) { 209 209 Serial.printf("[%lu] Memory - Free: %d bytes, Total: %d bytes, Min Free: %d bytes\n", millis(), ESP.getFreeHeap(), 210 210 ESP.getHeapSize(), ESP.getMinFreeHeap()); 211 211 lastMemPrint = millis();