mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-08-21 05:20:36 +08:00
Merge pull request #39 from kylemanna/tiny_remove_rxframelistener
libuavcan: Disable Frame Listener with UAVCAN_TINY
This commit is contained in:
@@ -115,12 +115,14 @@ public:
|
||||
return getDispatcher().getCanIOManager().send(frame, tx_deadline, MonotonicTime(), iface_mask, qos, flags);
|
||||
}
|
||||
|
||||
#if !UAVCAN_TINY
|
||||
/**
|
||||
* The @ref IRxFrameListener interface allows one to monitor all incoming CAN frames.
|
||||
* This feature can be used to implement multithreaded nodes, or to add secondary protocol support.
|
||||
*/
|
||||
void removeRxFrameListener() { getDispatcher().removeRxFrameListener(); }
|
||||
void installRxFrameListener(IRxFrameListener* lst) { getDispatcher().installRxFrameListener(lst); }
|
||||
#endif
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user