don't set sock_available just to count it back to 0

This commit is contained in:
Sara Damiano
2019-05-24 19:15:56 -04:00
parent 6e550e566a
commit 52e19b73ff
4 changed files with 0 additions and 11 deletions

View File

@@ -621,8 +621,6 @@ protected:
while (!stream.available() && ((millis() - startMillis) < sockets[mux % TINY_GSM_MUX_COUNT]->_timeout)) { TINY_GSM_YIELD(); } \
char c = stream.read(); \
sockets[mux % TINY_GSM_MUX_COUNT]->rx.put(c);
sockets[mux % TINY_GSM_MUX_COUNT]->sock_available--;
// ^^ One less character available after moving from modem's FIFO to our FIFO
}
DBG("### Read:", len, "from", mux);
waitResponse();