diff --git a/NTP/Core/Src/app_main.c b/NTP/Core/Src/app_main.c index b4d3666..0416b21 100644 --- a/NTP/Core/Src/app_main.c +++ b/NTP/Core/Src/app_main.c @@ -52,7 +52,7 @@ void app_main(void *argument) { Get_Time(&sDate, &sTime); DS3231_GetTime(&utc); - if ((utc.Hour == 0) && (utc.Minute == 0) && (utc.Second == 0)) + if ((utc.Hour == 0) && (utc.Minute == 0) && (utc.Second == 0) && sBefore == 59) { debugln("Updating time"); breakTime(NTPToEpochUnix(), &utc, 0);