mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-07 07:23:50 +00:00
Add config option to enable/disable user XLX link control
This commit is contained in:
parent
4ed864a34e
commit
3ce8076e89
4 changed files with 26 additions and 8 deletions
9
Conf.cpp
9
Conf.cpp
|
|
@ -126,7 +126,8 @@ m_xlxNetworkTG(8U),
|
|||
m_xlxNetworkBase(84000U),
|
||||
m_xlxNetworkStartup(4000U),
|
||||
m_xlxNetworkRelink(0U),
|
||||
m_xlxNetworkDebug(false)
|
||||
m_xlxNetworkDebug(false),
|
||||
m_xlxNetworkUserControl(true)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -272,6 +273,8 @@ bool CConf::read()
|
|||
m_xlxNetworkRelink = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
m_xlxNetworkDebug = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "UserControl") == 0)
|
||||
m_xlxNetworkUserControl = atoi(value) ==1;
|
||||
} else if (section == SECTION_DMR_NETWORK_1) {
|
||||
if (::strcmp(key, "Enabled") == 0)
|
||||
m_dmrNetwork1Enabled = ::atoi(value) == 1;
|
||||
|
|
@ -732,6 +735,10 @@ bool CConf::getXLXNetworkDebug() const
|
|||
{
|
||||
return m_xlxNetworkDebug;
|
||||
}
|
||||
bool CConf::getXLXNetworkUserControl() const
|
||||
{
|
||||
return m_xlxNetworkUserControl;
|
||||
}
|
||||
|
||||
bool CConf::getDMRNetwork1Enabled() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue