diff --git a/main/main.ino b/main/main.ino index cb41903..fd051f4 100644 --- a/main/main.ino +++ b/main/main.ino @@ -2438,7 +2438,7 @@ 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.setTimeout((GeneralTimeOut - 1) * 1000); // -1 to avoid WDT http.setFollowRedirects(HTTPC_STRICT_FOLLOW_REDIRECTS); http.begin(OTA_JSON_URL, OTAserver_cert); int httpCode = http.GET();