Fix compiler warnings
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -484,7 +484,7 @@ class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>,
|
|||||||
* NTP server functions
|
* NTP server functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
byte NTPServerSyncImpl(String server = "pool.ntp.org", byte) {
|
byte NTPServerSyncImpl(String server = "pool.ntp.org", byte = -5) {
|
||||||
// Request network synchronization
|
// Request network synchronization
|
||||||
// AT+QNTP=<contextID>,<server>[,<port>][,<autosettime>]
|
// AT+QNTP=<contextID>,<server>[,<port>][,<autosettime>]
|
||||||
sendAT(GF("+QNTP=1,\""), server, '"');
|
sendAT(GF("+QNTP=1,\""), server, '"');
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ class TinyGsmUBLOX : public TinyGsmModem<TinyGsmUBLOX>,
|
|||||||
return (RegStatus)getRegistrationStatusXREG("CGREG");
|
return (RegStatus)getRegistrationStatusXREG("CGREG");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool setRadioAccessTecnology(int selected) {
|
bool setRadioAccessTecnology(int selected, int preferred) {
|
||||||
// selected:
|
// selected:
|
||||||
// 0: GSM / GPRS / eGPRS (single mode)
|
// 0: GSM / GPRS / eGPRS (single mode)
|
||||||
// 1: GSM / UMTS (dual mode)
|
// 1: GSM / UMTS (dual mode)
|
||||||
@@ -289,7 +289,7 @@ class TinyGsmUBLOX : public TinyGsmModem<TinyGsmUBLOX>,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getCurrentRadioAccessTecnology(int & selected) {
|
bool getCurrentRadioAccessTecnology(int&) {
|
||||||
// @TODO
|
// @TODO
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -796,7 +796,7 @@ class TinyGsmUBLOX : public TinyGsmModem<TinyGsmUBLOX>,
|
|||||||
if (len >= 0 && len <= 1024) { sockets[mux]->sock_available = len; }
|
if (len >= 0 && len <= 1024) { sockets[mux]->sock_available = len; }
|
||||||
}
|
}
|
||||||
data = "";
|
data = "";
|
||||||
//DBG("### URC Data Received:", len, "on", mux);
|
// DBG("### URC Data Received:", len, "on", mux);
|
||||||
} else if (data.endsWith(GF("+UUSOCL:"))) {
|
} else if (data.endsWith(GF("+UUSOCL:"))) {
|
||||||
int8_t mux = streamGetIntBefore('\n');
|
int8_t mux = streamGetIntBefore('\n');
|
||||||
if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) {
|
if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user