rtctime.cpp: fix crash until repair
This commit is contained in:
parent
790e186141
commit
01989320e0
@ -65,6 +65,7 @@ time_t get_rtctime(uint16_t *msec) {
|
|||||||
RtcDateTime tt = Rtc.GetDateTime();
|
RtcDateTime tt = Rtc.GetDateTime();
|
||||||
t = tt.Epoch32Time(); // sec2000 -> epoch
|
t = tt.Epoch32Time(); // sec2000 -> epoch
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
#ifdef RTC_INT
|
#ifdef RTC_INT
|
||||||
// adjust time to top of next second by waiting TimePulseTick to flip
|
// adjust time to top of next second by waiting TimePulseTick to flip
|
||||||
bool lastTick = TimePulseTick;
|
bool lastTick = TimePulseTick;
|
||||||
@ -72,6 +73,7 @@ time_t get_rtctime(uint16_t *msec) {
|
|||||||
};
|
};
|
||||||
t++;
|
t++;
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
return t;
|
return t;
|
||||||
|
|
||||||
} // get_rtctime()
|
} // get_rtctime()
|
||||||
|
Loading…
Reference in New Issue
Block a user