From b01f2bcc97016ebae3c7b4266938dc40fd304dae Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Tue, 9 Jun 2015 19:48:55 -0700 Subject: [PATCH] libuavcan: Disable Frame Listener with UAVCAN_TINY * Compliation will fail on small systems with UAVCAN_TINY defined with the following error: abstract_node.hpp:123:33: error: 'IRxFrameListener' has not been declared * Resolve issue by removing unecessary functions. * Error is revealed and resolved when building test_stm32f107. --- libuavcan/include/uavcan/node/abstract_node.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libuavcan/include/uavcan/node/abstract_node.hpp b/libuavcan/include/uavcan/node/abstract_node.hpp index 8414d2cec1..2976c32e75 100644 --- a/libuavcan/include/uavcan/node/abstract_node.hpp +++ b/libuavcan/include/uavcan/node/abstract_node.hpp @@ -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 }; }