Browse Source

Make retry delay random between 50,501 to prevent collisions even more

pull/1713/head
Wessel Nieboer 4 months ago
parent
commit
f04512fae4
No known key found for this signature in database GPG Key ID: 929C8E45E33B5FD2
  1. 2
      src/Mesh.cpp

2
src/Mesh.cpp

@ -27,7 +27,7 @@ uint8_t Mesh::getExtraAckTransmitCount() const {
} }
uint32_t Mesh::getCADFailRetryDelay() const { uint32_t Mesh::getCADFailRetryDelay() const {
return _rng->nextInt(1, 4)*120; return _rng->nextInt(50, 501);
} }
int Mesh::searchPeersByHash(const uint8_t* hash) { int Mesh::searchPeersByHash(const uint8_t* hash) {

Loading…
Cancel
Save