Merge pull request #110 from juribeparada/master
Not load FCS rooms if FCS is disabled
This commit is contained in:
commit
c8c211c4d6
2 changed files with 7 additions and 4 deletions
|
@ -89,7 +89,8 @@ m_current(),
|
|||
m_startup(),
|
||||
m_exclude(false),
|
||||
m_inactivityTimer(1000U),
|
||||
m_lostTimer(1000U, 120U)
|
||||
m_lostTimer(1000U, 120U),
|
||||
m_fcsNetworkEnabled(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -204,8 +205,8 @@ int CYSFGateway::run()
|
|||
}
|
||||
}
|
||||
|
||||
bool fcsNetworkEnabled = m_conf.getFCSNetworkEnabled();
|
||||
if (fcsNetworkEnabled) {
|
||||
m_fcsNetworkEnabled = m_conf.getFCSNetworkEnabled();
|
||||
if (m_fcsNetworkEnabled) {
|
||||
unsigned int txFrequency = m_conf.getTxFrequency();
|
||||
unsigned int rxFrequency = m_conf.getRxFrequency();
|
||||
std::string locator = calculateLocator();
|
||||
|
@ -478,7 +479,8 @@ void CYSFGateway::createWiresX(CYSFNetwork* rptNetwork)
|
|||
m_wiresX->setYSF2P25(address, port);
|
||||
|
||||
std::string filename = m_conf.getFCSNetworkFile();
|
||||
readFCSRoomsFile(filename);
|
||||
if (m_fcsNetworkEnabled)
|
||||
readFCSRoomsFile(filename);
|
||||
|
||||
m_reflectors->load();
|
||||
m_wiresX->start();
|
||||
|
|
|
@ -60,6 +60,7 @@ private:
|
|||
bool m_exclude;
|
||||
CTimer m_inactivityTimer;
|
||||
CTimer m_lostTimer;
|
||||
bool m_fcsNetworkEnabled;
|
||||
|
||||
void startupLinking();
|
||||
std::string calculateLocator();
|
||||
|
|
Loading…
Reference in a new issue