Need to clear Rx at end of dump

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2020-02-28 13:58:25 -05:00
parent 2cd2806ead
commit f0dbb403b9

View File

@@ -276,9 +276,12 @@ class TinyGsmTCP {
rx.clear();
at->modemRead(TinyGsmMin((uint16_t)rx.free(), sock_available), mux);
}
rx.clear();
at->streamClear();
#elif defined TINY_GSM_NO_MODEM_BUFFER
// Do nothing
rx.clear();
at->streamClear();
#else
#error Modem client has been incorrectly created