mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 10:33:33 +08:00
NodeInfoRetriever::invalidateAll()
This commit is contained in:
@@ -195,6 +195,17 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Make all nodes unknown.
|
||||
*/
|
||||
void forgetAllNodes()
|
||||
{
|
||||
for (unsigned i = 0; i < (sizeof(entries_) / sizeof(entries_[0])); i++)
|
||||
{
|
||||
entries_[i] = Entry();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns status of a given node.
|
||||
* Unknown nodes are considered offline.
|
||||
|
||||
Reference in New Issue
Block a user