Skip to content

Commit 402619e

Browse files
committed
Fixed retries
1 parent 4b7e5d2 commit 402619e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TheThingsNetwork.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ bool TheThingsNetwork::provision(const char *appEui, const char *appKey)
453453
bool TheThingsNetwork::join(int8_t retries, uint32_t retryDelay)
454454
{
455455
configureChannels(sf, fsb);
456-
while (retries-- >= 0)
456+
while (retries == -1 || retries-- >= 0)
457457
{
458458
if (!sendJoinSet(MAC_JOIN_MODE_OTAA))
459459
{

0 commit comments

Comments
 (0)