From 363d55078cca8e3ff4251c811ca70cfd7b0626d0 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Sun, 10 Jul 2022 07:51:16 -0600 Subject: [PATCH] Fix mesh.begin() (#214) * Fix mesh.begin() - Begin will return true by mistake because of recent changes to the renewAddress() function * Oops --- RF24Mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RF24Mesh.cpp b/RF24Mesh.cpp index ff9b3cd..6c6306f 100644 --- a/RF24Mesh.cpp +++ b/RF24Mesh.cpp @@ -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; } }