Compilation fixes

This commit is contained in:
Damjan Adamic
2016-09-02 23:07:58 +02:00
parent bbadf9064a
commit 874483ba55
4 changed files with 3 additions and 2 deletions
@@ -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;
-1
View File
@@ -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);
}