Linux makeNode() helper overload

This commit is contained in:
Pavel Kirienko
2016-06-13 00:46:13 +03:00
parent 59bcde5868
commit a19dfd56dc
6 changed files with 102 additions and 35 deletions
@@ -137,9 +137,8 @@ public:
static uavcan_linux::NodePtr initNodeInPassiveMode(const std::vector<std::string>& ifaces, const std::string& node_name)
{
auto node = uavcan_linux::makeNode(ifaces);
node->setName(node_name.c_str());
ENFORCE(0 == node->start());
auto node = uavcan_linux::makeNode(ifaces, node_name.c_str(),
uavcan::protocol::SoftwareVersion(), uavcan::protocol::HardwareVersion());
node->setModeOperational();
return node;
}