Skip to content

Commit

Permalink
resolve #211
Browse files Browse the repository at this point in the history
renewAddress() strictly returns a network address, not a bool on timeout
  • Loading branch information
2bndy5 committed Jun 18, 2022
1 parent 535c38f commit a3bc47d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RF24Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ uint16_t RF24Mesh::renewAddress(uint32_t timeout)

uint32_t start = millis();
while (!requestAddress(reqCounter)) {
if (millis() - start > timeout) { return 0; }
if (millis() - start > timeout) { break; }

uint32_t timeoutInternal = 50 + ((totalReqs + 1) * (reqCounter + 1)) * 2;
uint32_t startInternal = millis();
Expand Down

0 comments on commit a3bc47d

Please sign in to comment.