mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 00:43:35 +08:00
getIface() constants added
This commit is contained in:
@@ -601,6 +601,11 @@ public:
|
||||
{
|
||||
return (iface_index >= num_ifaces_) ? nullptr : static_cast<SocketCanIface*>(ifaces_[iface_index]);
|
||||
}
|
||||
const SocketCanIface* getIface(std::uint8_t iface_index) const override
|
||||
{
|
||||
return (iface_index >= num_ifaces_) ? nullptr : static_cast<const SocketCanIface*>(ifaces_[iface_index]);
|
||||
}
|
||||
|
||||
|
||||
std::uint8_t getNumIfaces() const override { return num_ifaces_; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user