Removed extra check for connection in available.

This commit is contained in:
Sara Damiano
2018-10-08 17:56:42 -04:00
parent 54fdf32d7f
commit 943c9a1fdd
7 changed files with 10 additions and 10 deletions

View File

@@ -112,7 +112,7 @@ public:
virtual int available() {
TINY_GSM_YIELD();
if (!rx.size() && sock_connected) {
if (!rx.size()) {
at->maintain();
}
return rx.size();
@@ -191,7 +191,7 @@ public:
if (waitResponse() != 1) {
return false;
}
sendAT(GF("+CMEE=0")); // Turn of verbose errors
sendAT(GF("+CMEE=0")); // Turn off verbose errors
waitResponse();
sendAT(GF("+CMER=3,0,0,2")); // Set unsolicited result code output destination
waitResponse();