mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 04:13:33 +08:00
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:
@@ -115,12 +115,14 @@ public:
|
|||||||
return getDispatcher().getCanIOManager().send(frame, tx_deadline, MonotonicTime(), iface_mask, qos, flags);
|
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.
|
* 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.
|
* This feature can be used to implement multithreaded nodes, or to add secondary protocol support.
|
||||||
*/
|
*/
|
||||||
void removeRxFrameListener() { getDispatcher().removeRxFrameListener(); }
|
void removeRxFrameListener() { getDispatcher().removeRxFrameListener(); }
|
||||||
void installRxFrameListener(IRxFrameListener* lst) { getDispatcher().installRxFrameListener(lst); }
|
void installRxFrameListener(IRxFrameListener* lst) { getDispatcher().installRxFrameListener(lst); }
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user