Build config UAVCAN_MAX_NETWORK_SIZE_HINT (#33)

This commit is contained in:
Pavel Kirienko
2015-06-15 15:44:58 +03:00
parent 00319909c1
commit 9a77d27d81
3 changed files with 17 additions and 9 deletions
@@ -51,12 +51,7 @@ private:
typedef MethodBinder<NodeStatusMonitor*, void (NodeStatusMonitor::*)(const TimerEvent&)> TimerCallback;
/*
* We'll be able to handle this many nodes in the network without any dynamic memory.
*/
enum { NumStaticReceivers = 64 };
Subscriber<protocol::NodeStatus, NodeStatusCallback, NumStaticReceivers, 0> sub_;
Subscriber<protocol::NodeStatus, NodeStatusCallback, MaxNetworkSizeHint, 0> sub_;
TimerEventForwarder<TimerCallback> timer_;