From 01989320e0fa2c523d7eba937f2b679c2af7aeb7 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sat, 5 Mar 2022 18:10:35 +0100 Subject: [PATCH] rtctime.cpp: fix crash until repair --- src/rtctime.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rtctime.cpp b/src/rtctime.cpp index e0142d45..50280d3b 100644 --- a/src/rtctime.cpp +++ b/src/rtctime.cpp @@ -65,6 +65,7 @@ time_t get_rtctime(uint16_t *msec) { RtcDateTime tt = Rtc.GetDateTime(); t = tt.Epoch32Time(); // sec2000 -> epoch } + /* #ifdef RTC_INT // adjust time to top of next second by waiting TimePulseTick to flip bool lastTick = TimePulseTick; @@ -72,6 +73,7 @@ time_t get_rtctime(uint16_t *msec) { }; t++; #endif +*/ return t; } // get_rtctime()