Added more init attempts for XBee

This commit is contained in:
SRGDamia1
2018-02-20 18:16:40 -05:00
parent 1ae97f12f5
commit fc4d4a49e1
3 changed files with 3 additions and 3 deletions

View File

@@ -219,7 +219,7 @@ public:
bool init() {
guardTime = 1100; // Start with a default guard time of 1 second
if (!commandMode()) return false;
if (!commandMode(10)) return false; // Try up to 10 times for the init
sendAT(GF("AP0")); // Put in transparent mode
bool ret_val = waitResponse() == 1;