This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user