Browse Source

Fix compiler warnings

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
dependabot/github_actions/actions/checkout-4
Sara Damiano 3 years ago
parent
commit
c9ebf60e3c
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      src/TinyGsmClientBG96.h
  2. +3
    -3
      src/TinyGsmClientUBLOX.h

+ 1
- 1
src/TinyGsmClientBG96.h View File

@ -484,7 +484,7 @@ class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>,
* 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=<contextID>,<server>[,<port>][,<autosettime>]
sendAT(GF("+QNTP=1,\""), server, '"');


+ 3
- 3
src/TinyGsmClientUBLOX.h View File

@ -271,7 +271,7 @@ class TinyGsmUBLOX : public TinyGsmModem<TinyGsmUBLOX>,
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<TinyGsmUBLOX>,
return true;
}
bool getCurrentRadioAccessTecnology(int & selected) {
bool getCurrentRadioAccessTecnology(int&) {
// @TODO
return false;
}
@ -796,7 +796,7 @@ class TinyGsmUBLOX : public TinyGsmModem<TinyGsmUBLOX>,
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]) {


Loading…
Cancel
Save