mirror of https://github.com/ArduPilot/ardupilot
AP_GPS: allow for compilation without AP_RTC_ENABLED
This commit is contained in:
parent
f9de53fd09
commit
2175a4a271
|
@ -1059,7 +1059,7 @@ void AP_GPS::update_instance(uint8_t instance)
|
|||
(void)data_should_be_logged;
|
||||
#endif
|
||||
|
||||
#ifndef HAL_BUILD_AP_PERIPH
|
||||
#if AP_RTC_ENABLED
|
||||
if (state[instance].status >= GPS_OK_FIX_3D) {
|
||||
const uint64_t now = time_epoch_usec(instance);
|
||||
if (now != 0) {
|
||||
|
|
Loading…
Reference in New Issue