We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b962dd3 commit 7f2fac1Copy full SHA for 7f2fac1
libcanard/canard.c
@@ -1608,6 +1608,9 @@ static void node_id_occupancy_reset(canard_t* const self)
1608
// Records the seen node-ID and reallocates the local node if a collision is found.
1609
static void node_id_occupancy_update(canard_t* const self, const byte_t src)
1610
{
1611
+ if (src == CANARD_NODE_ID_ANONYMOUS) {
1612
+ return;
1613
+ }
1614
// Update the node-ID occupancy bitmap. We cannot detect departures of an individual node, so in the presence of
1615
// churn the slots will be eventually exhausted. We mitigate this by applying probabilistic purge once the
1616
// population count exceeds some threshold, such that the purge probability becomes 1 when the bitmap is almost
0 commit comments