Fix missing TCP_PORT for printf in TCP server example (#270)

Also replace `%d` with `%u`

Co-authored-by: Viacheslav Lotsmanov <lotsmanov89@gmail.com>
This commit is contained in:
Wenzel
2022-10-13 04:09:04 +03:00
committed by GitHub
parent 5555037e78
commit 75c6a5e9db

View File

@@ -197,7 +197,7 @@ static bool tcp_server_open(void *arg) {
err_t err = tcp_bind(pcb, NULL, TCP_PORT);
if (err) {
DEBUG_printf("failed to bind to port %d\n");
DEBUG_printf("failed to bind to port %u\n", TCP_PORT);
return false;
}