diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-02 00:25:19 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-02 00:25:19 +0200 |
commit | 4cd66a3242aa2dfb03a3e58ffcc8d27e1350b7ac (patch) | |
tree | cdde300f5915b1e27d37e6c16ffd501d3885a056 | |
parent | 8c638d2addad0831b71428591cd76629c436ee05 (diff) | |
download | px4-firmware-4cd66a3242aa2dfb03a3e58ffcc8d27e1350b7ac.tar.gz px4-firmware-4cd66a3242aa2dfb03a3e58ffcc8d27e1350b7ac.tar.bz2 px4-firmware-4cd66a3242aa2dfb03a3e58ffcc8d27e1350b7ac.zip |
Fix sdlog2 GPS time copy for log_on_start situation
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 9b071ff99..f99aec34e 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1070,7 +1070,7 @@ int sdlog2_thread_main(int argc, char *argv[]) if (log_on_start) { /* check GPS topic to get GPS time */ if (log_name_timestamp) { - if (copy_if_updated(ORB_ID(vehicle_gps_position), subs.gps_pos_sub, &buf_gps_pos)) { + if (!orb_copy(ORB_ID(vehicle_gps_position), subs.gps_pos_sub, &buf_gps_pos)) { gps_time = buf_gps_pos.time_gps_usec; } } |