Skip to content
Snippets Groups Projects
Commit 0ddf7207 authored by Holger Steinhaus's avatar Holger Steinhaus Committed by Lorenz Meier
Browse files

uavcan: fix shadowed variable

parent 43473b10
No related branches found
No related tags found
No related merge requests found
......@@ -1116,8 +1116,8 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
case UAVCANIOC_HARDPOINT_SET: {
const auto &cmd = *reinterpret_cast<uavcan::equipment::hardpoint::Command *>(arg);
_hardpoint_controller.set_command(cmd.hardpoint_id, cmd.command);
const auto &hp_cmd = *reinterpret_cast<uavcan::equipment::hardpoint::Command *>(arg);
_hardpoint_controller.set_command(hp_cmd.hardpoint_id, hp_cmd.command);
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment