[Taranis X9E] Last minute changes taken into account. It remains a bug

in SWF and SWP definitions (they share the same pins in the spec)
This commit is contained in:
bsongis
2015-06-11 19:21:30 +02:00
parent 08f97e08c6
commit 95de75ba41
11 changed files with 306 additions and 262 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ void rtcSetTime(struct gtm * t)
RTC_SetDate(RTC_Format_BIN, &RTC_DateStruct);
}
void rtc_gettime(struct gtm * t)
void rtcGetTime(struct gtm * t)
{
RTC_TimeTypeDef RTC_TimeStruct;
RTC_DateTypeDef RTC_DateStruct;
@@ -90,6 +90,6 @@ void rtcInit()
RTC_Init(&RTC_InitStruct);
struct gtm utm;
rtc_gettime(&utm);
rtcGetTime(&utm);
g_rtcTime = gmktime(&utm);
}