mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
uavcan: fix shadowed variable
This commit is contained in:
committed by
Lorenz Meier
parent
43473b10a8
commit
0ddf720759
@@ -1116,8 +1116,8 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
|
|||||||
|
|
||||||
|
|
||||||
case UAVCANIOC_HARDPOINT_SET: {
|
case UAVCANIOC_HARDPOINT_SET: {
|
||||||
const auto &cmd = *reinterpret_cast<uavcan::equipment::hardpoint::Command *>(arg);
|
const auto &hp_cmd = *reinterpret_cast<uavcan::equipment::hardpoint::Command *>(arg);
|
||||||
_hardpoint_controller.set_command(cmd.hardpoint_id, cmd.command);
|
_hardpoint_controller.set_command(hp_cmd.hardpoint_id, hp_cmd.command);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user