Need more truth-checks
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -270,7 +270,7 @@ class TinyGsmTCP {
|
||||
inline void dumpModemBuffer(uint32_t maxWaitMs) {
|
||||
#if defined TINY_GSM_BUFFER_READ_AND_CHECK_SIZE || \
|
||||
defined TINY_GSM_BUFFER_READ_NO_CHECK
|
||||
TINY_GSM_YIELD();
|
||||
TINY_GSM_YIELD();
|
||||
uint32_t startMillis = millis();
|
||||
while (sock_available > 0 && (millis() - startMillis < maxWaitMs)) {
|
||||
rx.clear();
|
||||
|
||||
Reference in New Issue
Block a user