From 526b9371e4f540ca7d33fd2afd37128109e2e7a2 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sun, 10 May 2015 20:24:32 +0300 Subject: [PATCH] Minor logging fix --- .../allocation_request_manager.hpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 bb5a6fb3bd..7bd852dd96 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 @@ -196,14 +196,16 @@ class AllocationRequestManager copy(current_unique_id_.begin(), current_unique_id_.end(), unique_id.begin()); current_unique_id_.clear(); - handler_.handleAllocationRequest(unique_id, msg.node_id); - - uint64_t event_agrument = 0; - for (uint8_t i = 0; i < 8; i++) { - event_agrument |= static_cast(unique_id[i]) << (i * 8U); + uint64_t event_agrument = 0; + for (uint8_t i = 0; i < 8; i++) + { + event_agrument |= static_cast(unique_id[i]) << (i * 8U); + } + trace(TraceAllocationExchangeComplete, static_cast(event_agrument)); } - trace(TraceAllocationExchangeComplete, static_cast(event_agrument)); + + handler_.handleAllocationRequest(unique_id, msg.node_id); } else {