Commit 2cf5c36d authored by Daniil Kukushkin's avatar Daniil Kukushkin

Fixed problem with several manual controllers at the same time

parent 2612c038
This diff is collapsed.
......@@ -127,6 +127,11 @@ bool UdpPacketSender::hasController(IPAddress addr) const
return false;
}
bool UdpPacketSender::isMainController(IPAddress addr) const
{
return ((controllersCount > 0) && (addr == controllerIP[0]));
}
int UdpPacketSender::resolvePortBySourceType(SenderSourceType sourceType) const
{
switch (sourceType)
......
......@@ -67,6 +67,7 @@ public:
/* =========================================== */
bool hasController(IPAddress addr) const;
bool isMainController(IPAddress addr) const;
int connectedCount() const;
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment