diff --git a/extras/sntp/sntp_fun.c b/extras/sntp/sntp_fun.c
index b4210ec..12e986f 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();
 }