mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 11:23:34 +08:00
libuavcan: Proper passive mode handling
This commit is contained in:
@@ -319,9 +319,10 @@ bool Dispatcher::hasServer(DataTypeID dtid) const
|
||||
|
||||
bool Dispatcher::setNodeID(NodeID nid)
|
||||
{
|
||||
if (nid.isUnicast() && !self_node_id_.isValid())
|
||||
if (!self_node_id_is_set_)
|
||||
{
|
||||
self_node_id_ = nid;
|
||||
self_node_id_is_set_ = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user