From 3e2b2830e5abddca2412b1e52ab58310b481aed5 Mon Sep 17 00:00:00 2001 From: Rutger Huijgen Date: Mon, 20 Apr 2020 16:54:18 +0200 Subject: [PATCH] Fixed issue in sntp, same as master --- extras/sntp/sntp_fun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/sntp/sntp_fun.c b/extras/sntp/sntp_fun.c index b4210ec..d677c07 100644 --- a/extras/sntp/sntp_fun.c +++ b/extras/sntp/sntp_fun.c @@ -68,7 +68,7 @@ void sntp_initialize(const struct timezone *tz) { cal = 1; tim_ref = TIMER_COUNT; sntp_sem = xSemaphoreCreateMutex(); - assert(sntp_sem == NULL); + assert(sntp_sem != NULL); sntp_init(); } @@ -97,7 +97,7 @@ int _gettimeofday_r(struct _reent *r, struct timeval *tp, void *tzp) { if (tzp || !tp) return EINVAL; if (sntp_base == 0) { - printf("Time not valid yet"); + printf("Time not valid yet\n"); return EINVAL; }