From ecde5add0f55e6d61df808e4ab433a7d65f6cf68 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Wed, 13 Mar 2024 16:17:43 +0100 Subject: [PATCH] remove dependency --- lib/MycilaTime/MycilaTime.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/MycilaTime/MycilaTime.h b/lib/MycilaTime/MycilaTime.h index 6ac69860..8e8d11c1 100644 --- a/lib/MycilaTime/MycilaTime.h +++ b/lib/MycilaTime/MycilaTime.h @@ -4,8 +4,6 @@ */ #pragma once -#include - #include #include @@ -33,7 +31,7 @@ namespace Mycila { static time_t getUnixTime() { time_t now; struct tm timeinfo; - if (!NTP.isSynced() || !getLocalTime(&timeinfo, 5)) + if (!getLocalTime(&timeinfo, 5)) return 0; time(&now); return now;