mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
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 (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();
|
||||
|
||||
// set system clock for log timestamps
|
||||
hal.util->set_system_clock(gps_timestamp);
|
||||
|
||||
// update signing timestamp
|
||||
|
Loading…
Reference in New Issue
Block a user