Fix timeout preventing https update

This commit is contained in:
Florian
2023-08-25 16:22:00 -05:00
parent e02c9d5574
commit cf8ec80538

View File

@@ -2438,7 +2438,6 @@ String latestVersion;
bool checkForUpdates() {
Log.notice(F("Update check, free heap: %d"), ESP.getFreeHeap());
HTTPClient http;
http.setTimeout(GeneralTimeOut - 1); // -1 to avoid WDT
http.setFollowRedirects(HTTPC_STRICT_FOLLOW_REDIRECTS);
http.begin(OTA_JSON_URL, OTAserver_cert);
int httpCode = http.GET();