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
This commit is contained in:
Peter Barker 2022-07-13 18:53:16 +10:00 committed by Andrew Tridgell
parent dd2221338b
commit 01751fba60
2 changed files with 7 additions and 7 deletions

View File

@ -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 <AP_HAL/AP_HAL.h>
#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 <AP_HAL/AP_HAL.h>
/*
* try to put a UBlox into binary mode. This is in two parts.

View File

@ -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