Compilation fixes
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
|
||||
void rtcSetTime(const struct gtm * t)
|
||||
{
|
||||
g_ms100 = 0; // start of next second begins now
|
||||
|
||||
RTC_TimeTypeDef RTC_TimeStruct;
|
||||
RTC_DateTypeDef RTC_DateStruct;
|
||||
|
||||
|
||||
@@ -265,7 +265,6 @@ void rtcGetTime(struct gtm * utm)
|
||||
|
||||
void rtcSetTime(const struct gtm * t)
|
||||
{
|
||||
g_rtcTime = gmktime(t); // update local timestamp and get wday calculated
|
||||
g_ms100 = 0; // start of next second begins now
|
||||
|
||||
RTC rtc;
|
||||
|
||||
@@ -238,7 +238,6 @@ struct t_i2cTime
|
||||
|
||||
void rtcSetTime(const struct gtm * t)
|
||||
{
|
||||
g_rtcTime = gmktime(t); // update local timestamp and get wday calculated
|
||||
g_ms100 = 0; // start of next second begins now
|
||||
|
||||
I2CTime.setCode = 0x74 ; // Tiny SET TIME CODE command
|
||||
|
||||
@@ -62,6 +62,7 @@ void writeRtc(gtm* ptr)
|
||||
|
||||
void rtcSetTime(const struct gtm * t)
|
||||
{
|
||||
g_ms100 = 0; // start of next second begins now
|
||||
writeRtc(t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user