Skip to content

Commit d06cac2

Browse files
committed
ClientContext: fix debugging messages
1 parent a7a5959 commit d06cac2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libraries/ESP8266WiFi/src/include/ClientContext.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ class ClientContext
449449
return false;
450450
}
451451

452-
DEBUGV(":wr %d %d %d\r\n", will_send, left, _written);
452+
DEBUGV(":wr %d %d\r\n", _datasource->available(), _written);
453+
453454
bool has_written = false;
454455

455456
while (_datasource) {
@@ -470,7 +471,7 @@ class ClientContext
470471
// user data will not stay in place when data are sent but not acknowledged
471472
flags |= TCP_WRITE_FLAG_COPY;
472473
err_t err = tcp_write(_pcb, buf, next_chunk_size, flags);
473-
DEBUGV(":wrc %d %d %d\r\n", next_chunk_size, will_send, (int)err);
474+
DEBUGV(":wrc %d %d %d\r\n", next_chunk_size, _datasource->available(), (int)err);
474475
if (err == ERR_OK) {
475476
_datasource->release_buffer(buf, next_chunk_size);
476477
_written += next_chunk_size;

0 commit comments

Comments
 (0)