Allow for an optional local Parrot entry.

This commit is contained in:
Jonathan Naylor 2016-10-03 17:45:20 +01:00
parent 6f6d27ebf3
commit 20485f5d02
8 changed files with 86 additions and 31 deletions

View file

@ -205,6 +205,12 @@ int CYSFGateway::run()
m_wiresX->setInfo(name, txFrequency, rxFrequency);
std::string address = m_conf.getNetworkParrotAddress();
unsigned int port = m_conf.getNetworkParrotPort();
if (port > 0U)
m_wiresX->setParrot(address, port);
m_wiresX->start();
m_startup = m_conf.getNetworkStartup();