Skip to content

Commit

Permalink
Resolve partial redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
weekroom committed Jun 14, 2024
1 parent 34bb2c8 commit 9ade9f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/TinyGsmClientSIM7020.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#include "TinyGsmTime.tpp"

#define GSM_NL "\r\n"
static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL;
static const char GSM_ERROR[] TINY_GSM_PROGMEM = "ERROR" GSM_NL;
// static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL;
// static const char GSM_ERROR[] TINY_GSM_PROGMEM = "ERROR" GSM_NL;
#if defined TINY_GSM_DEBUG
static const char GSM_CME_ERROR[] TINY_GSM_PROGMEM = GSM_NL "+CME ERROR:";
static const char GSM_CMS_ERROR[] TINY_GSM_PROGMEM = GSM_NL "+CMS ERROR:";
Expand Down Expand Up @@ -230,7 +230,7 @@ class TinyGsmSim7020 : public TinyGsmModem<TinyGsmSim7020>, public TinyGsmNBIOT<
* Power functions
*/
protected:
bool restartImpl()
bool restartImpl(const char* pin = NULL)
{
/* Hardware Reset */
pinMode(this->reset_pin, OUTPUT);
Expand Down
6 changes: 3 additions & 3 deletions src/TinyGsmClientSIM7028.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include "TinyGsmGPRS.tpp"
#endif
#define GSM_NL "\r\n"
static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL;
static const char GSM_ERROR[] TINY_GSM_PROGMEM = "ERROR" GSM_NL;
// static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL;
// static const char GSM_ERROR[] TINY_GSM_PROGMEM = "ERROR" GSM_NL;
#if defined TINY_GSM_DEBUG
static const char GSM_CME_ERROR[] TINY_GSM_PROGMEM = GSM_NL "+CME ERROR:";
static const char GSM_CMS_ERROR[] TINY_GSM_PROGMEM = GSM_NL "+CMS ERROR:";
Expand Down Expand Up @@ -228,7 +228,7 @@ class TinyGsmSim7028 : public TinyGsmModem<TinyGsmSim7028>,
* Power functions
*/
protected:
bool restartImpl()
bool restartImpl(const char* pin = NULL)
{
/* Hardware Reset */
pinMode(this->reset_pin, OUTPUT);
Expand Down

0 comments on commit 9ade9f2

Please sign in to comment.