mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +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);
|
gmtime_r(&univTime, &time_tm);
|
||||||
// Chibios date struct
|
// Chibios date struct
|
||||||
RTCDateTime date;
|
RTCDateTime date;
|
||||||
rtcConvertDateTimeToStructTm(&date, &time_tm, NULL);
|
rtcConvertStructTmToDateTime(&time_tm, 0, &date);
|
||||||
rtcSetTime (&RTCD1, &date);
|
rtcSetTime(&RTCD1, &date);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user