From 3ecce8641e49bc006f52bcb18e3bc95ecf7aeeec Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Tue, 7 May 2019 17:20:08 -0400 Subject: [PATCH] Add an extra 50ms wait around the guard time --- src/TinyGsmClientXBee.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TinyGsmClientXBee.h b/src/TinyGsmClientXBee.h index fcb6884..fc8d1ae 100644 --- a/src/TinyGsmClientXBee.h +++ b/src/TinyGsmClientXBee.h @@ -992,8 +992,8 @@ finish: streamClear(); // Empty everything in the buffer before starting while (!success and triesMade < retries) { // Cannot send anything for 1 "guard time" before entering command mode - // Default guard time is 1s, but the init fxn decreases it to 250 ms - delay(guardTime); + // Default guard time is 1s, but the init fxn decreases it to 100 ms + delay(guardTime + 50); streamWrite(GF("+++")); // enter command mode int res = waitResponse(guardTime*2); success = (1 == res);