Fix issues building examples with LWIP_IPV6 (#268)

Fixes https://github.com/raspberrypi/pico-examples/issues/265
This commit is contained in:
Peter Harper
2022-12-06 23:49:18 +00:00
committed by GitHub
parent f31966d69d
commit 5bb4f7f6cb
4 changed files with 16 additions and 18 deletions

View File

@@ -76,7 +76,7 @@ static void ntp_dns_found(const char *hostname, const ip_addr_t *ipaddr, void *a
NTP_T *state = (NTP_T*)arg;
if (ipaddr) {
state->ntp_server_address = *ipaddr;
printf("ntp address %s\n", ip4addr_ntoa(ipaddr));
printf("ntp address %s\n", ipaddr_ntoa(ipaddr));
ntp_request(state);
} else {
printf("ntp dns request failed\n");