From d9cb8bf6bccf85b542ebfbb07c255bfedd9a1104 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Tue, 4 Nov 2025 21:38:37 +0100 Subject: [PATCH] Updated the OTAUpdater class which uses the HttpClient to make use of the introduced enum --- src/app/OTAUpdater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/OTAUpdater.cpp b/src/app/OTAUpdater.cpp index ea42ee6..31acd4b 100644 --- a/src/app/OTAUpdater.cpp +++ b/src/app/OTAUpdater.cpp @@ -127,7 +127,7 @@ OTAUpdater::UpdateInfo OTAUpdater::fetchUpdateInfo(const char *softwareVersion, headerData.add("x-ESP8266-STA-MAC",DictionaryHelper::StringEntity(WiFi.macAddress().c_str())); headerData.add("User-Agent",DictionaryHelper::StringEntity("ESP8266-http-Update")); - if(httpClient.sendHttpQuery(HttpClient::HttpRequestMethod::GET, &getData, NULL, &headerData) == 0) + if(httpClient.sendHttpQuery(HttpClient::HttpRequestMethod::GET, &getData, NULL, &headerData) == HttpClient::HttpQueryStatus::SUCCESS) { HttpConstants::HTTP_CODE result = httpClient.isReplyAvailable(1000); switch(result)