From 75303e62bf555be6aecbffec4c698f3b3a1a5109 Mon Sep 17 00:00:00 2001 From: etwasmitbaum <47484288+etwasmitbaum@users.noreply.github.com> Date: Tue, 29 Jun 2021 17:03:34 +0200 Subject: [PATCH] added delay after configTime to fix issue that it's not really syncing for more info see here: https://github.com/sqfmi/Watchy/pull/70#issuecomment-869416826 --- src/Watchy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index e9a1e83..84fa02a 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -88,6 +88,7 @@ void Watchy::syncNtpTime(){ //get NTP Time configTime(GMT_OFFSET_SEC, DAYLIGHT_OFFSET_SEC, NTP_SERVER); + delay(4000); //delay 4 secods so configTime can finish recieving the time from the internet getLocalTime(&timeinfo); // convert NTP time into proper format