Skip to content

Commit 19420e0

Browse files
committed
fix CI
1 parent e5ea7b3 commit 19420e0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
164164

165165
// use HTTP/1.0 for update since the update handler not support any transfer Encoding
166166
http.useHTTP10(true);
167-
http.setTimeout(_httpClientTimeout);
167+
http.setWallTime(_httpClientWallTime);
168168
http.setFollowRedirects(_followRedirects);
169169
http.setUserAgent(F("ESP8266-http-Update"));
170170
http.addHeader(F("x-ESP8266-Chip-ID"), String(ESP.getChipId()));

libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,8 @@ class ESP8266HTTPUpdate
132132
int getLastError(void);
133133
String getLastErrorString(void);
134134

135-
void setClientTimeout(int timeout) {
136-
_httpClientTimeout = timeout;
137-
}
135+
[[deprecated("use setWallTime()")]] void setClientTimeout(int wallTime) { setWallTime(wallTime); }
136+
void setWallTime(int wallTime) { _httpWallTime = wallTime; }
138137
protected:
139138
t_httpUpdate_return handleUpdate(HTTPClient& http, const String& currentVersion, bool spiffs = false);
140139
bool runUpdate(Stream& in, uint32_t size, const String& md5, int command = U_FLASH);

0 commit comments

Comments
 (0)