From d3703c2a0ae4f3ebd434e4ec71fd62485dfa2cf7 Mon Sep 17 00:00:00 2001 From: GuruSR Date: Sat, 6 Nov 2021 09:30:40 -0400 Subject: [PATCH] Version 1.2.1. --- src/Watchy_GSR.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Watchy_GSR.cpp b/src/Watchy_GSR.cpp index 249ef1d..6197e0f 100644 --- a/src/Watchy_GSR.cpp +++ b/src/Watchy_GSR.cpp @@ -222,12 +222,11 @@ void WatchyGSR::init(){ switch (wakeup_reason) { case ESP_SLEEP_WAKEUP_EXT0: //RTC Alarm - WatchTime.NewMinute=true; + WatchTime.Drifting += Options.Drift; + IDidIt = true; UpdateUTC(); - WatchTime.EPSMS = (millis() + (60000 - (1000 * WatchTime.UTC.Second))); - ManageTime(); // Account for drift. RTC.alarm(ALARM_2); //resets the alarm flag in the RTC - WatchTime.NewMinute=false; + WatchTime.EPSMS = (millis() + (60000 - (1000 * WatchTime.UTC.Second))); UpdateClock(); detectBattery(); UpdateDisp=Showing(); @@ -2101,6 +2100,7 @@ void WatchyGSR::ManageTime(){ Options.UsingDrift = (Options.Drift != 0); if (Menu.Item == MENU_TOFF) Menu.SubItem = 3; NTPData.TimeTest = false; + if (Options.UsingDrift) WatchTime.Drifting = Options.Drift; }else{ NTPData.TimeTest = false; if (Menu.Item == MENU_TOFF) Menu.SubItem = 0;