mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 16:53:35 +08:00
getIface() constants added
This commit is contained in:
@@ -348,6 +348,11 @@ uavcan::ICanIface* CanDriver::getIface(uavcan::uint8_t iface_index)
|
||||
return (iface_index == 0) ? this : NULL;
|
||||
}
|
||||
|
||||
const uavcan::ICanIface* CanDriver::getIface(uavcan::uint8_t iface_index) const
|
||||
{
|
||||
return (iface_index == 0) ? this : NULL;
|
||||
}
|
||||
|
||||
uavcan::uint8_t CanDriver::getNumIfaces() const
|
||||
{
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user