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

@@ -100,7 +100,7 @@ uint32_t TinyGsmAutoBaud(T& SerialAT, uint32_t minimum = 9600, uint32_t maximum
DBG("Trying baud rate", rate, "...");
SerialAT.begin(rate);
delay(10);
for (int i=0; i<3; i++) {
for (int i=0; i<10; i++) {
SerialAT.print("AT\r\n");
String input = SerialAT.readString();
if (input.indexOf("OK") >= 0) {