mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 09:58:23 +08:00
[sdlog] fix RTC update from GPS so log date is correct
This commit is contained in:
@@ -202,8 +202,8 @@ static void thd_startlog(void *arg)
|
||||
gmtime_r(&univTime, &time_tm);
|
||||
// Chibios date struct
|
||||
RTCDateTime date;
|
||||
rtcConvertDateTimeToStructTm(&date, &time_tm, NULL);
|
||||
rtcSetTime (&RTCD1, &date);
|
||||
rtcConvertStructTmToDateTime(&time_tm, 0, &date);
|
||||
rtcSetTime(&RTCD1, &date);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user