From 0ddf72075939afa5defb5b3605801f7dd9b9dd06 Mon Sep 17 00:00:00 2001 From: Holger Steinhaus Date: Fri, 8 Apr 2016 20:34:33 +0200 Subject: [PATCH] uavcan: fix shadowed variable --- src/modules/uavcan/uavcan_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/uavcan/uavcan_main.cpp b/src/modules/uavcan/uavcan_main.cpp index bea77aec4b..c38ff8738b 100644 --- a/src/modules/uavcan/uavcan_main.cpp +++ b/src/modules/uavcan/uavcan_main.cpp @@ -1116,8 +1116,8 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg) case UAVCANIOC_HARDPOINT_SET: { - const auto &cmd = *reinterpret_cast(arg); - _hardpoint_controller.set_command(cmd.hardpoint_id, cmd.command); + const auto &hp_cmd = *reinterpret_cast(arg); + _hardpoint_controller.set_command(hp_cmd.hardpoint_id, hp_cmd.command); } break;