diff --git a/libraries/AP_RTC/AP_RTC.cpp b/libraries/AP_RTC/AP_RTC.cpp index a439882a34..19fa8dabbb 100644 --- a/libraries/AP_RTC/AP_RTC.cpp +++ b/libraries/AP_RTC/AP_RTC.cpp @@ -75,7 +75,7 @@ void AP_RTC::set_utc_usec(uint64_t time_utc_usec, source_type type) rtc_source_type = type; -#ifndef HAL_NO_GCS +#if HAL_GCS_ENABLED // update signing timestamp GCS_MAVLINK::update_signing_timestamp(time_utc_usec); #endif