Undef GSM_NL

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2024-05-13 12:12:03 -04:00
parent 640158a344
commit 1a6f36d66d
15 changed files with 46 additions and 1 deletions

View File

@@ -14,7 +14,10 @@
#define TINY_GSM_MUX_COUNT 8
#define TINY_GSM_NO_MODEM_BUFFER
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmCalling.tpp"

View File

@@ -14,7 +14,10 @@
#define TINY_GSM_MUX_COUNT 12
#define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmCalling.tpp"

View File

@@ -14,7 +14,10 @@
#define TINY_GSM_MUX_COUNT 5
#define TINY_GSM_NO_MODEM_BUFFER
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmModem.tpp"
#include "TinyGsmSSL.tpp"

View File

@@ -14,7 +14,10 @@
#define TINY_GSM_MUX_COUNT 2
#define TINY_GSM_NO_MODEM_BUFFER
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmGPRS.tpp"
#include "TinyGsmModem.tpp"

View File

@@ -15,7 +15,10 @@
#define TINY_GSM_MUX_COUNT 6
#define TINY_GSM_BUFFER_READ_NO_CHECK
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmCalling.tpp"

View File

@@ -17,7 +17,10 @@
#define TINY_GSM_MUX_COUNT 6
#define TINY_GSM_BUFFER_READ_NO_CHECK
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmCalling.tpp"

View File

@@ -14,7 +14,10 @@
#define TINY_GSM_MUX_COUNT 10
#define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmGPRS.tpp"

View File

@@ -11,7 +11,10 @@
// #define TINY_GSM_DEBUG Serial
// #define TINY_GSM_USE_HEX
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmGPRS.tpp"

View File

@@ -14,7 +14,10 @@
#define TINY_GSM_MUX_COUNT 10
#define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmCalling.tpp"

View File

@@ -15,7 +15,10 @@
#define TINY_GSM_MUX_COUNT 5
#define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmCalling.tpp"

View File

@@ -14,7 +14,10 @@
#define TINY_GSM_MUX_COUNT 7
#define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmGPRS.tpp"

View File

@@ -13,7 +13,10 @@
#define TINY_GSM_MUX_COUNT 6
#define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmCalling.tpp"
#include "TinyGsmGPRS.tpp"

View File

@@ -14,7 +14,10 @@
#define TINY_GSM_MUX_COUNT 7
#define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmCalling.tpp"

View File

@@ -20,7 +20,10 @@
// XBee's have a default guard time of 1 second (1000ms, 10 extra for safety
// here)
#define TINY_GSM_XBEE_GUARD_TIME 1010
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r" // NOTE: define before including TinyGsmModem!
#endif
#include "TinyGsmBattery.tpp"
#include "TinyGsmGPRS.tpp"
@@ -1388,7 +1391,7 @@ class TinyGsmXBee : public TinyGsmModem<TinyGsmXBee>,
}
}
// The XBee has no unsoliliced responses (URC's) when in command mode.
bool handleURCs(String& data) {
bool handleURCs(String&) {
return true;
}

View File

@@ -12,8 +12,11 @@
#include "TinyGsmCommon.h"
#ifndef GSM_NL
#ifdef GSM_NL
#undef GSM_NL
#define GSM_NL "\r\n"
#endif
#endif
static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL;
static const char GSM_ERROR[] TINY_GSM_PROGMEM = "ERROR" GSM_NL;