add define to disable sw serial
This commit is contained in:
parent
f5030a2692
commit
ec1882be89
|
|
@ -39,8 +39,6 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#define USE_SW_SERIAL ///< comment this out if you don't want to include
|
||||
///< software serial in the library
|
||||
#define GPS_DEFAULT_I2C_ADDR \
|
||||
0x10 ///< The default address for I2C transport of GPS data
|
||||
#define GPS_MAX_I2C_TRANSFER \
|
||||
|
|
@ -54,7 +52,7 @@
|
|||
3 ///< maximum length of a source ID name, including terminating 0
|
||||
|
||||
#include "Arduino.h"
|
||||
#if (defined(__AVR__) || defined(ESP8266)) && defined(USE_SW_SERIAL)
|
||||
#if (defined(__AVR__) || defined(ESP8266)) && !defined(NO_SW_SERIAL)
|
||||
#include <SoftwareSerial.h>
|
||||
#endif
|
||||
#include <Adafruit_PMTK.h>
|
||||
|
|
@ -83,7 +81,7 @@ public:
|
|||
// Adafruit_GPS.cpp
|
||||
bool begin(uint32_t baud_or_i2caddr);
|
||||
|
||||
#if (defined(__AVR__) || defined(ESP8266)) && defined(USE_SW_SERIAL)
|
||||
#if (defined(__AVR__) || defined(ESP8266)) && !defined(NO_SW_SERIAL)
|
||||
Adafruit_GPS(SoftwareSerial *ser); // Constructor when using SoftwareSerial
|
||||
#endif
|
||||
Adafruit_GPS(HardwareSerial *ser); // Constructor when using HardwareSerial
|
||||
|
|
@ -281,7 +279,7 @@ private:
|
|||
bool paused;
|
||||
|
||||
uint8_t parseResponse(char *response);
|
||||
#if (defined(__AVR__) || defined(ESP8266)) && defined(USE_SW_SERIAL)
|
||||
#if (defined(__AVR__) || defined(ESP8266)) && !defined(NO_SW_SERIAL)
|
||||
SoftwareSerial *gpsSwSerial;
|
||||
#endif
|
||||
bool noComms = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue