From 9e9ade0055eaf65c59119e324b2faa2302576b6e Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sun, 24 May 2015 14:25:56 +0300 Subject: [PATCH] Node ID allocation server - allocation response TX timeout set to DEFAULT_REQUEST_PERIOD_MS --- .../dynamic_node_id_server/allocation_request_manager.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/allocation_request_manager.hpp b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/allocation_request_manager.hpp index 8c63132adc..cd0f44832e 100644 --- a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/allocation_request_manager.hpp +++ b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/allocation_request_manager.hpp @@ -251,6 +251,7 @@ public: return res; } (void)allocation_pub_.setPriority(TransferPriorityLow); + allocation_pub_.setTxTimeout(MonotonicDuration::fromMSec(Allocation::DEFAULT_REQUEST_PERIOD_MS)); res = allocation_sub_.start(AllocationCallback(this, &AllocationRequestManager::handleAllocation)); if (res < 0)