From 9d745906d6b9324d82c5fd90b9bed35678276424 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 3 Mar 2023 21:52:26 +0100 Subject: Un-set ntp_ok if there's an error --- ntp_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntp_client.c b/ntp_client.c index cd9d5f7..b11683e 100644 --- a/ntp_client.c +++ b/ntp_client.c @@ -117,6 +117,7 @@ static void ntp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, } else { state->err = 1; + state->ok = 0; } pbuf_free(p); } @@ -151,6 +152,7 @@ static void ntp_dns_found(const char *hostname, } else { debug_print("NTP failed: DNS no address\n"); state->err = 1; + state->ok = 0; } } -- cgit v1.2.3