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.
This commit is contained in:
Kyle Manna 2015-06-09 19:48:55 -07:00
parent 7b44bf8822
commit b01f2bcc97

View File

@ -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
};
}