mirror of https://github.com/ArduPilot/ardupilot
Sub: Fix redundant call
This commit is contained in:
parent
4349eaba32
commit
fc9eb797be
|
@ -141,10 +141,9 @@ void Sub::set_system_time_from_GPS()
|
||||||
|
|
||||||
// if we have a 3d lock and valid location
|
// if we have a 3d lock and valid location
|
||||||
if (gps.status() >= AP_GPS::GPS_OK_FIX_3D) {
|
if (gps.status() >= AP_GPS::GPS_OK_FIX_3D) {
|
||||||
// set system clock for log timestamps
|
|
||||||
hal.util->set_system_clock(gps.time_epoch_usec());
|
|
||||||
uint64_t gps_timestamp = gps.time_epoch_usec();
|
uint64_t gps_timestamp = gps.time_epoch_usec();
|
||||||
|
|
||||||
|
// set system clock for log timestamps
|
||||||
hal.util->set_system_clock(gps_timestamp);
|
hal.util->set_system_clock(gps_timestamp);
|
||||||
|
|
||||||
// update signing timestamp
|
// update signing timestamp
|
||||||
|
|
Loading…
Reference in New Issue