Extra yield in waitResponse

This commit is contained in:
Sara Damiano
2019-05-30 15:50:24 -04:00
parent 1d21fe302a
commit 015c2b4144
12 changed files with 35 additions and 11 deletions

View File

@@ -698,6 +698,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do {
TINY_GSM_YIELD();
while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a;
@@ -743,6 +744,8 @@ finish:
}
data = "";
}
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index;
}