Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
  • Loading branch information
SRGDamia1 committed May 19, 2021
1 parent b6a8686 commit c9ebf60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/TinyGsmClientBG96.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, '"');
Expand Down
6 changes: 3 additions & 3 deletions src/TinyGsmClientUBLOX.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -289,7 +289,7 @@ class TinyGsmUBLOX : public TinyGsmModem<TinyGsmUBLOX>,
return true;
}

bool getCurrentRadioAccessTecnology(int & selected) {
bool getCurrentRadioAccessTecnology(int&) {
// @TODO
return false;
}
Expand Down Expand Up @@ -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]) {
Expand Down

0 comments on commit c9ebf60

Please sign in to comment.