We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aaa63c commit 244f7d8Copy full SHA for 244f7d8
libraries/ArduinoOTA/src/ArduinoOTA.cpp
@@ -287,7 +287,7 @@ void ArduinoOTAClass::_runUpdate() {
287
if (!waited){
288
if(written && tried++ < 3){
289
log_i("Try[%u]: %u", tried, written);
290
- if(!client.printf("%lu", written)){
+ if(!client.printf("%u", written)){
291
log_e("failed to respond");
292
_state = OTA_IDLE;
293
break;
@@ -326,7 +326,7 @@ void ArduinoOTAClass::_runUpdate() {
326
if(written != r){
327
log_w("didn't write enough! %u != %u", written, r);
328
}
329
330
log_w("failed to respond");
331
332
total += written;
0 commit comments