fixed sd read error
All checks were successful
Build Release / build (push) Successful in 1m21s

This commit is contained in:
2026-08-16 20:17:39 +02:00
parent 2949e8c110
commit ab9b81683b
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,6 @@ namespace {
HTTPClient http;
http.setTimeout(timeoutMs);
if (!http.begin(persistentClient, url)) return false;
http.setReuse(true);
int code = http.GET();
bool ok = (code == HTTP_CODE_OK);
if (ok) outBody = http.getString();
@@ -77,6 +76,7 @@ namespace {
bool loadFromSd(const char* hex, Info& out) {
if (!SdStorage::isMounted()) return false;
String path = String(Config::SD_DETAIL_CACHE_DIR) + "/" + hex + ".txt";
if (!SD.exists(path)) return false;
File f = SD.open(path);
if (!f) return false;
char line[64];