diff --git a/library.properties b/library.properties index 0d9adbb..c15f79a 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=IridiumSBDi2c -version=3.0.4 +version=3.0.5 author=Mikal Hart and Paul Clark (PaulZC) maintainer=SparkFun Electronics sentence=This library supports satellite data transmissions from anywhere on earth using the RockBLOCK family of Iridium 9602 and 9603 modems. diff --git a/src/IridiumSBD.cpp b/src/IridiumSBD.cpp index e107ffb..8059675 100644 --- a/src/IridiumSBD.cpp +++ b/src/IridiumSBD.cpp @@ -546,9 +546,6 @@ int IridiumSBD::internalBegin() power(true); // power on - if (this->useSerial) // If we are using Serial - beginSerialPort(); // Apollo3 v2.1 Serial fix - bool modemAlive = false; unsigned long startupTime = 500; //ms @@ -556,6 +553,9 @@ int IridiumSBD::internalBegin() if (cancelled()) return ISBD_CANCELLED; + if (this->useSerial) // If we are using Serial + beginSerialPort(); // Apollo3 v2.1 Serial fix - begin the Serial port 500ms after power(true) + // Turn on modem and wait for a response from "AT" command to begin for (unsigned long start = millis(); !modemAlive && millis() - start < 1000UL * this->startupTimeout;) {