diff --git a/libraries/AP_DAL/AP_DAL_Beacon.cpp b/libraries/AP_DAL/AP_DAL_Beacon.cpp index 3b0f88c6e25..9058f057585 100644 --- a/libraries/AP_DAL/AP_DAL_Beacon.cpp +++ b/libraries/AP_DAL/AP_DAL_Beacon.cpp @@ -7,9 +7,13 @@ AP_DAL_Beacon::AP_DAL_Beacon() { +#if !APM_BUILD_TYPE(APM_BUILD_AP_DAL_Standalone) && !APM_BUILD_TYPE(APM_BUILD_Replay) + const auto *bcon = AP::beacon(); + _RBCH.count = bcon->count(); for (uint8_t i=0; icount(); _RBCH.get_vehicle_position_ned_returncode = bcon->get_vehicle_position_ned(_RBCH.vehicle_position_ned, _RBCH.accuracy_estimate); - Location loc; _RBCH.get_origin_returncode = bcon->get_origin(loc); _RBCH.enabled = bcon->enabled();