1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Fix problem on UDP NTP client

This commit is contained in:
Mimmo La Fauci 2013-03-16 15:08:08 +01:00
parent 85e0353588
commit 2c35d715fc

View File

@ -696,6 +696,7 @@ static int udp_start(struct ttcp* ttcp) {
WARN("TTCP [%p]: udp connect failed\n", ttcp); WARN("TTCP [%p]: udp connect failed\n", ttcp);
return -1; return -1;
} }
udp_recv(ttcp->upcb, audp_recv_cb, ttcp);
} else { } else {
/* bind to any IP address on port specified */ /* bind to any IP address on port specified */
err = udp_bind(ttcp->upcb, IP_ADDR_ANY, ttcp->port); err = udp_bind(ttcp->upcb, IP_ADDR_ANY, ttcp->port);