mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 17:33:33 +08:00
Linux app compilation fixes
This commit is contained in:
@@ -41,7 +41,7 @@ uavcan_linux::NodePtr initNode(const std::vector<std::string>& ifaces, uavcan::N
|
||||
const int start_res = node->start();
|
||||
ENFORCE(0 == start_res);
|
||||
|
||||
node->setStatusOk();
|
||||
node->setModeOperational();
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ static uavcan_linux::NodePtr initNode(const std::vector<std::string>& ifaces, ua
|
||||
|
||||
ENFORCE(0 == node->start());
|
||||
|
||||
node->setStatusOk();
|
||||
node->setModeOperational();
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ uavcan_linux::NodePtr initNode(const std::vector<std::string>& ifaces, uavcan::N
|
||||
const int start_res = node->start();
|
||||
ENFORCE(0 == start_res);
|
||||
|
||||
node->setStatusOk();
|
||||
node->setModeOperational();
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ uavcan_linux::NodePtr initNode(const std::vector<std::string>& ifaces, uavcan::N
|
||||
node->setNodeID(nid);
|
||||
node->setName(name.c_str());
|
||||
ENFORCE(0 == node->start()); // This node doesn't check its network compatibility
|
||||
node->setStatusOk();
|
||||
node->setModeOperational();
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user