From 39f64c65284a323d23aea71aeafd6a670f10573f Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Wed, 27 Sep 2017 23:46:58 +0300 Subject: [PATCH] Rename autoBaud -> testAT --- TinyGsmClientU201.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TinyGsmClientU201.h b/TinyGsmClientU201.h index 7a1da14..fd4a587 100644 --- a/TinyGsmClientU201.h +++ b/TinyGsmClientU201.h @@ -208,7 +208,7 @@ public: } bool init(const char* pin = NULL) { - if (!autoBaud()) { + if (!testAT()) { return false; } sendAT(GF("E0")); // Echo Off @@ -226,7 +226,7 @@ public: sendAT(GF("+IPR="), baud); } - bool autoBaud(unsigned long timeout = 10000L) { + bool testAT(unsigned long timeout = 10000L) { for (unsigned long start = millis(); millis() - start < timeout; ) { sendAT(GF("")); if (waitResponse(200) == 1) { @@ -263,7 +263,7 @@ public: */ bool restart() { - if (!autoBaud()) { + if (!testAT()) { return false; } sendAT(GF("+CFUN=16"));