Sub: Fix redundant call

This commit is contained in:
Jacob Walser 2017-04-05 17:14:31 -04:00
parent 4349eaba32
commit fc9eb797be
1 changed files with 1 additions and 2 deletions

View File

@ -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