Skip to content

Commit 53d190f

Browse files
committed
Merge pull request esp8266#1948 from riyono/fix-bug-1940
added .c_str() to currentVersion
2 parents c8a1507 + 46fccac commit 53d190f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
220220
DEBUG_HTTP_UPDATE("[httpUpdate] - current Sketch Size: %d\n", ESP.getSketchSize());
221221

222222
if(currentVersion && currentVersion[0] != 0x00) {
223-
DEBUG_HTTP_UPDATE("[httpUpdate] - current version: %s\n", currentVersion);
223+
DEBUG_HTTP_UPDATE("[httpUpdate] - current version: %s\n", currentVersion.c_str() );
224224
}
225225

226226
switch(code) {

0 commit comments

Comments
 (0)