Skip to content

Commit 9d67d89

Browse files
authored
Merge pull request #22 from sparkfun/release_candidate
v3.0.7
2 parents afef38b + 2b4852f commit 9d67d89

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
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.6
2+
version=3.0.7
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,8 @@ bool IridiumSBD::waitForATResponse(char *response, int responseSize, const char
947947
matchTerminatorPos = c == terminator[0] ? 1 : 0;
948948
}
949949
} // while (filteredavailable() > 0)
950+
951+
delay(AT_RESPONSE_LOOP_DELAY); // Resolve #19
950952
} // timer loop
951953
return false;
952954
}

src/IridiumSBD.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class IridiumSBD
112112

113113
typedef enum { DEFAULT_POWER_PROFILE = 0, USB_POWER_PROFILE = 1 } POWERPROFILE;
114114
void setPowerProfile(POWERPROFILE profile); // 0 = direct connect (default), 1 = USB
115-
void adjustATTimeout(int seconds); // default value = 20 seconds
115+
void adjustATTimeout(int seconds); // default value = 30 seconds
116116
void adjustSendReceiveTimeout(int seconds); // default value = 300 seconds
117117
void adjustStartupTimeout(int seconds); // default value = 240 seconds
118118
void useMSSTMWorkaround(bool useMSSTMWorkAround); // true to use workaround from Iridium Alert 5/7/13
@@ -221,7 +221,8 @@ class IridiumSBD
221221
int sendReceiveTimeout;
222222
int startupTimeout;
223223
unsigned long lastCheck = 0; // The time in millis when the I2C bus was last checked (limits I2C traffic)
224-
const uint8_t I2C_POLLING_WAIT_MS = 5; //Limit checking of new characters to every 5 ms (roughly 10 chars at 19200 baud)
224+
const unsigned long I2C_POLLING_WAIT_MS = 5; //Limit checking of new characters to every 5 ms (roughly 10 chars at 19200 baud)
225+
const unsigned long AT_RESPONSE_LOOP_DELAY = 2; //Resolves #19 - 2 ms (roughly 4 chars at 19200 baud)
225226

226227
// State variables
227228
int remainingMessages;

0 commit comments

Comments
 (0)