From 01751fba601db70fa38a96bf59d665ab69033ad1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 13 Jul 2022 18:53:16 +1000 Subject: [PATCH] AP_GPS: move defaulting of AP_GPS_UBLOX_ENABLED to AP_GPS_config Addition of this define crossed with another PR which created the config.h file --- libraries/AP_GPS/AP_GPS_UBLOX.h | 10 +++------- libraries/AP_GPS/AP_GPS_config.h | 4 ++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.h b/libraries/AP_GPS/AP_GPS_UBLOX.h index b83be40afd..b0f75435ec 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.h +++ b/libraries/AP_GPS/AP_GPS_UBLOX.h @@ -20,16 +20,12 @@ // UBlox Lea6H protocol: http://www.u-blox.com/images/downloads/Product_Docs/u-blox6_ReceiverDescriptionProtocolSpec_%28GPS.G6-SW-10018%29.pdf #pragma once -#include - -#ifndef AP_GPS_UBLOX_ENABLED - #define AP_GPS_UBLOX_ENABLED 1 -#endif +#include "AP_GPS.h" +#include "GPS_Backend.h" #if AP_GPS_UBLOX_ENABLED -#include "AP_GPS.h" -#include "GPS_Backend.h" +#include /* * try to put a UBlox into binary mode. This is in two parts. diff --git a/libraries/AP_GPS/AP_GPS_config.h b/libraries/AP_GPS/AP_GPS_config.h index 8d6a495ec5..168fede5bf 100644 --- a/libraries/AP_GPS/AP_GPS_config.h +++ b/libraries/AP_GPS/AP_GPS_config.h @@ -35,3 +35,7 @@ #ifndef AP_GPS_SIRF_ENABLED #define AP_GPS_SIRF_ENABLED AP_GPS_BACKEND_DEFAULT_ENABLED #endif + +#ifndef AP_GPS_UBLOX_ENABLED + #define AP_GPS_UBLOX_ENABLED 1 +#endif