Skip to content

Commit 4eecaa6

Browse files
authored
Fix debug printf (#347)
1 parent 60829a1 commit 4eecaa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pico_w/wifi/access_point/picow_access_point.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static err_t tcp_server_accept(void *arg, struct tcp_pcb *client_pcb, err_t err)
238238

239239
static bool tcp_server_open(void *arg) {
240240
TCP_SERVER_T *state = (TCP_SERVER_T*)arg;
241-
DEBUG_printf("starting server on port %u\n", TCP_PORT);
241+
DEBUG_printf("starting server on port %d\n", TCP_PORT);
242242

243243
struct tcp_pcb *pcb = tcp_new_ip_type(IPADDR_TYPE_ANY);
244244
if (!pcb) {
@@ -248,7 +248,7 @@ static bool tcp_server_open(void *arg) {
248248

249249
err_t err = tcp_bind(pcb, IP_ANY_TYPE, TCP_PORT);
250250
if (err) {
251-
DEBUG_printf("failed to bind to port %d\n");
251+
DEBUG_printf("failed to bind to port %d\n",TCP_PORT);
252252
return false;
253253
}
254254

0 commit comments

Comments
 (0)