Changed API of DynamicNodeIDClient: start() accepts UniqueID instead of HardwareVersion

This commit is contained in:
Pavel Kirienko
2015-09-25 00:02:58 +03:00
parent 50dc08663a
commit 0f53a76b50
7 changed files with 37 additions and 35 deletions
@@ -44,7 +44,7 @@ uavcan_linux::NodePtr initNodeWithDynamicID(const std::vector<std::string>& ifac
*/
uavcan::DynamicNodeIDClient client(*node);
ENFORCE(0 <= client.start(node->getNodeStatusProvider().getHardwareVersion(), preferred_node_id));
ENFORCE(0 <= client.start(node->getNodeStatusProvider().getHardwareVersion().unique_id, preferred_node_id));
std::cout << "Waiting for dynamic node ID allocation..." << std::endl;