Cleaned up UAVCAN ioctl codes

This commit is contained in:
Pavel Kirienko
2016-05-17 08:56:02 +02:00
committed by Lorenz Meier
parent bf6dff3e99
commit a268845f1d
3 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -1115,7 +1115,7 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
break;
case UAVCANIOC_HARDPOINT_SET: {
case UAVCAN_IOCS_HARDPOINT_SET: {
const auto &hp_cmd = *reinterpret_cast<uavcan::equipment::hardpoint::Command *>(arg);
_hardpoint_controller.set_command(hp_cmd.hardpoint_id, hp_cmd.command);
}