sim7000: added fix on read

This commit is contained in:
Francesco Stefanni
2021-03-18 08:06:14 +01:00
parent 28f7e7b298
commit 7f19c69554

View File

@@ -632,14 +632,14 @@ class TinyGsmSim7000 : public TinyGsmModem<TinyGsmSim7000>,
sockets[mux]->sock_available = 0;
return 0;
}
/*
stream.read();
if (stream.peek() == '0') {
waitResponse();
sockets[mux]->sock_available = 0;
return 0;
}
*/
const int16_t len_confirmed = streamGetIntBefore(',');
if (len_confirmed <= 0) {
sockets[mux]->sock_available = 0;