Add NMEA_EXTRAS for command line compile control

This commit is contained in:
Rick Sellens 2020-01-29 09:59:47 -05:00
parent 2a5b5bdd1c
commit 0b0996bbb0
1 changed files with 8 additions and 2 deletions

View File

@ -31,9 +31,15 @@
Comment out the definition of NMEA_EXTENSIONS to make the library use as Comment out the definition of NMEA_EXTENSIONS to make the library use as
little memory as possible for GPS functionality only. The ARDUINO_ARCH_AVR little memory as possible for GPS functionality only. The ARDUINO_ARCH_AVR
test should leave it out of any compilations for the UNO and similar. */ test should leave it out of any compilations for the UNO and similar. */
#ifndef NMEA_EXTRAS // inject on the compile command line to force extensions
#ifndef ARDUINO_ARCH_AVR #ifndef ARDUINO_ARCH_AVR
#define NMEA_EXTENSIONS ///< if defined will include more NMEA sentences #define NMEA_EXTENSIONS ///< if defined will include more NMEA sentences
#endif #endif
#else
#if(NMEA_EXTRAS > 0)
#define NMEA_EXTENSIONS ///< if defined will include more NMEA sentences
#endif
#endif
#define USE_SW_SERIAL ///< comment this out if you don't want to include #define USE_SW_SERIAL ///< comment this out if you don't want to include
///< software serial in the library ///< software serial in the library