Skip to content

Commit 75c6a5e

Browse files
Fix missing TCP_PORT for printf in TCP server example (#270)
Also replace `%d` with `%u` Co-authored-by: Viacheslav Lotsmanov <[email protected]>
1 parent 5555037 commit 75c6a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pico_w/tcp_server/picow_tcp_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static bool tcp_server_open(void *arg) {
197197

198198
err_t err = tcp_bind(pcb, NULL, TCP_PORT);
199199
if (err) {
200-
DEBUG_printf("failed to bind to port %d\n");
200+
DEBUG_printf("failed to bind to port %u\n", TCP_PORT);
201201
return false;
202202
}
203203

0 commit comments

Comments
 (0)