De-increment sock available as we read out of sock

This commit is contained in:
Sara Damiano
2019-05-23 15:32:24 -04:00
parent 7e314292d4
commit fcb3d5b010
10 changed files with 24 additions and 6 deletions

View File

@@ -622,6 +622,8 @@ protected:
for (size_t i=0; i<len; i++) {
TINY_GSM_MODEM_STREAM_TO_MUX_FIFO_WITH_DOUBLE_TIMEOUT
sockets[mux]->sock_available--;
// ^^ One less character available after moving from modem's FIFO to our FIFO
}
waitResponse();
DBG("### READ:", len, "from", mux);