Skip to content

v3.0.5 - Change the timing of beginSerialPort #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=IridiumSBDi2c
version=3.0.4
version=3.0.5
author=Mikal Hart and Paul Clark (PaulZC)
maintainer=SparkFun Electronics <sparkfun.com>
sentence=This library supports satellite data transmissions from anywhere on earth using the RockBLOCK family of Iridium 9602 and 9603 modems.
Expand Down
6 changes: 3 additions & 3 deletions src/IridiumSBD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,16 +546,16 @@ 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
for (unsigned long start = millis(); millis() - start < startupTime;)
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;)
{
Expand Down