From 58d4871177efc0594825c2e8a5d92fb7bac7691d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 10 Dec 2023 08:55:59 +1100 Subject: [PATCH] AP_DAL: remove tmp_location from global namespace removes this from the global namespace and means it isn't included when DAL isn't update the location where we update the fields. --- libraries/AP_DAL/AP_DAL_GPS.cpp | 16 ++++------------ libraries/AP_DAL/AP_DAL_GPS.h | 10 +++++++++- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/libraries/AP_DAL/AP_DAL_GPS.cpp b/libraries/AP_DAL/AP_DAL_GPS.cpp index 8246157691..c57cc3d063 100644 --- a/libraries/AP_DAL/AP_DAL_GPS.cpp +++ b/libraries/AP_DAL/AP_DAL_GPS.cpp @@ -3,9 +3,6 @@ #include #include "AP_DAL.h" -// we use a static here as the "location" accessor wants to be const -static Location tmp_location[GPS_MAX_INSTANCES]; - AP_DAL_GPS::AP_DAL_GPS() { for (uint8_t i=0; i