Skip to content

Commit 5f8ea89

Browse files
authored
Merge pull request #11 from sparkfun/release_candidate
v3.0.5 - Change the timing of beginSerialPort
2 parents 0839ce6 + cffc0cc commit 5f8ea89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=IridiumSBDi2c
2-
version=3.0.4
2+
version=3.0.5
33
author=Mikal Hart and Paul Clark (PaulZC)
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=This library supports satellite data transmissions from anywhere on earth using the RockBLOCK family of Iridium 9602 and 9603 modems.

src/IridiumSBD.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,16 +546,16 @@ int IridiumSBD::internalBegin()
546546

547547
power(true); // power on
548548

549-
if (this->useSerial) // If we are using Serial
550-
beginSerialPort(); // Apollo3 v2.1 Serial fix
551-
552549
bool modemAlive = false;
553550

554551
unsigned long startupTime = 500; //ms
555552
for (unsigned long start = millis(); millis() - start < startupTime;)
556553
if (cancelled())
557554
return ISBD_CANCELLED;
558555

556+
if (this->useSerial) // If we are using Serial
557+
beginSerialPort(); // Apollo3 v2.1 Serial fix - begin the Serial port 500ms after power(true)
558+
559559
// Turn on modem and wait for a response from "AT" command to begin
560560
for (unsigned long start = millis(); !modemAlive && millis() - start < 1000UL * this->startupTimeout;)
561561
{

0 commit comments

Comments
 (0)