mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 02:11:35 +08:00
sdlog2.c param metadata
This commit is contained in:
@@ -412,7 +412,7 @@ bool get_log_time_tt(struct tm *tt, bool boot_time) {
|
|||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
px4_clock_gettime(CLOCK_REALTIME, &ts);
|
px4_clock_gettime(CLOCK_REALTIME, &ts);
|
||||||
/* use RTC time for log file naming, e.g. /fs/microsd/2014-01-19/19_37_52.px4log */
|
/* use RTC time for log file naming, e.g. /fs/microsd/2014-01-19/19_37_52.px4log */
|
||||||
time_t utc_time_sec;
|
time_t utc_time_sec = 0;
|
||||||
|
|
||||||
if (_gpstime_only && has_gps_3d_fix) {
|
if (_gpstime_only && has_gps_3d_fix) {
|
||||||
utc_time_sec = gps_time_sec;
|
utc_time_sec = gps_time_sec;
|
||||||
|
|||||||
Reference in New Issue
Block a user