AP_GPS: allow for compilation without AP_RTC_ENABLED

This commit is contained in:
Peter Barker 2023-10-05 18:40:34 +11:00 committed by Andrew Tridgell
parent f9de53fd09
commit 2175a4a271
1 changed files with 1 additions and 1 deletions

View File

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