uavcan: fix shadowed variable

This commit is contained in:
Holger Steinhaus
2016-04-08 20:34:33 +02:00
committed by Lorenz Meier
parent 43473b10a8
commit 0ddf720759

View File

@@ -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;