mirror of
https://github.com/KevinMidboe/TinyGSM.git
synced 2025-10-29 18:00:18 +00:00
Add an extra 50ms wait around the guard time
This commit is contained in:
@@ -992,8 +992,8 @@ finish:
|
|||||||
streamClear(); // Empty everything in the buffer before starting
|
streamClear(); // Empty everything in the buffer before starting
|
||||||
while (!success and triesMade < retries) {
|
while (!success and triesMade < retries) {
|
||||||
// Cannot send anything for 1 "guard time" before entering command mode
|
// 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
|
// Default guard time is 1s, but the init fxn decreases it to 100 ms
|
||||||
delay(guardTime);
|
delay(guardTime + 50);
|
||||||
streamWrite(GF("+++")); // enter command mode
|
streamWrite(GF("+++")); // enter command mode
|
||||||
int res = waitResponse(guardTime*2);
|
int res = waitResponse(guardTime*2);
|
||||||
success = (1 == res);
|
success = (1 == res);
|
||||||
|
|||||||
Reference in New Issue
Block a user