nRF24 / RF24Mesh

OSI Layer 7 Mesh Networking for RF24Network & nrf24L01+ & nrf52x devices
http://nrf24.github.io/RF24Mesh
GNU General Public License v2.0
422 stars 154 forks source link

MESH_CALLBACK and eliminate delay in renewAddress() #194

Closed BCsabaEngine closed 3 years ago

BCsabaEngine commented 3 years ago

MESH_CALLBACK is a very useful tool when there is other time critical loops in sketch. I have found a place where is a long delay without MESH_CALLBACK. I refactored the delay() (there is 50+ ms!) and use the MESH_CALLBACK macro.

Tried to follow code format descriptions, please merge PR.

BCsabaEngine commented 3 years ago

MESH_CALLBACK with this correction can be an async connection mode, make the connect invisible by the user/rtos.