Skip to content

Commit

Permalink
Fix mesh.begin() (#214)
Browse files Browse the repository at this point in the history
* Fix mesh.begin()

- Begin will return true by mistake because of recent changes to the renewAddress() function

* Oops
  • Loading branch information
TMRh20 authored Jul 10, 2022
1 parent 3b6c2e0 commit 363d550
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 @@ -35,7 +35,7 @@ bool RF24Mesh::begin(uint8_t channel, rf24_datarate_e data_rate, uint32_t timeou
network.returnSysMsgs = true;

if (getNodeID() > 0) { //Not master node
if (!renewAddress(timeout)) {
if (renewAddress(timeout) == MESH_DEFAULT_ADDRESS) {
return false;
}
}
Expand Down

0 comments on commit 363d550

Please sign in to comment.