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)