From c9ebf60e3c937998ff771d802b4ea90669e2bc17 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Wed, 19 May 2021 11:31:43 -0400 Subject: [PATCH] Fix compiler warnings Signed-off-by: Sara Damiano --- src/TinyGsmClientBG96.h | 2 +- src/TinyGsmClientUBLOX.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TinyGsmClientBG96.h b/src/TinyGsmClientBG96.h index f0d7c6f..e696404 100644 --- a/src/TinyGsmClientBG96.h +++ b/src/TinyGsmClientBG96.h @@ -484,7 +484,7 @@ class TinyGsmBG96 : public TinyGsmModem, * NTP server functions */ - byte NTPServerSyncImpl(String server = "pool.ntp.org", byte) { + byte NTPServerSyncImpl(String server = "pool.ntp.org", byte = -5) { // Request network synchronization // AT+QNTP=,[,][,] sendAT(GF("+QNTP=1,\""), server, '"'); diff --git a/src/TinyGsmClientUBLOX.h b/src/TinyGsmClientUBLOX.h index da547b2..cf60040 100644 --- a/src/TinyGsmClientUBLOX.h +++ b/src/TinyGsmClientUBLOX.h @@ -271,7 +271,7 @@ class TinyGsmUBLOX : public TinyGsmModem, return (RegStatus)getRegistrationStatusXREG("CGREG"); } - bool setRadioAccessTecnology(int selected) { + bool setRadioAccessTecnology(int selected, int preferred) { // selected: // 0: GSM / GPRS / eGPRS (single mode) // 1: GSM / UMTS (dual mode) @@ -289,7 +289,7 @@ class TinyGsmUBLOX : public TinyGsmModem, return true; } - bool getCurrentRadioAccessTecnology(int & selected) { + bool getCurrentRadioAccessTecnology(int&) { // @TODO return false; } @@ -796,7 +796,7 @@ class TinyGsmUBLOX : public TinyGsmModem, if (len >= 0 && len <= 1024) { sockets[mux]->sock_available = len; } } data = ""; - //DBG("### URC Data Received:", len, "on", mux); + // DBG("### URC Data Received:", len, "on", mux); } else if (data.endsWith(GF("+UUSOCL:"))) { int8_t mux = streamGetIntBefore('\n'); if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) {