mirror of https://github.com/ArduPilot/ardupilot
AP_NMEA_Output: allow for compilation without AP_RTC_ENABLED
This commit is contained in:
parent
8f2c35d1e9
commit
0e0f50b661
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue