AP_NMEA_Output: allow for compilation without AP_RTC_ENABLED

This commit is contained in:
Peter Barker 2023-10-05 18:40:35 +11:00 committed by Andrew Tridgell
parent 8f2c35d1e9
commit 0e0f50b661
1 changed files with 4 additions and 0 deletions

View File

@ -96,9 +96,13 @@ void AP_NMEA_Output::update()
// get time and date // get time and date
uint64_t time_usec; uint64_t time_usec;
#if AP_RTC_ENABLED
if (!AP::rtc().get_utc_usec(time_usec)) { if (!AP::rtc().get_utc_usec(time_usec)) {
return; return;
} }
#else
time_usec = 0;
#endif
uint32_t space_required = 0; uint32_t space_required = 0;