mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-07 15:34:01 +00:00
Add an XLX base so the control ids can be shifted.
This commit is contained in:
parent
d12ac3ecb4
commit
87e261e99e
5 changed files with 19 additions and 1 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -84,6 +84,7 @@ m_xlxNetworkLocal(0U),
|
|||
m_xlxNetworkPassword(),
|
||||
m_xlxNetworkSlot(2U),
|
||||
m_xlxNetworkTG(9U),
|
||||
m_xlxNetworkBase(4000U),
|
||||
m_xlxNetworkOptions(),
|
||||
m_xlxNetworkDebug(false)
|
||||
{
|
||||
|
|
@ -183,6 +184,8 @@ bool CConf::read()
|
|||
m_xlxNetworkSlot = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "TG") == 0)
|
||||
m_xlxNetworkTG = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Base") == 0)
|
||||
m_xlxNetworkBase = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Options") == 0)
|
||||
m_xlxNetworkOptions = value;
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
|
|
@ -452,6 +455,11 @@ unsigned int CConf::getXLXNetworkTG() const
|
|||
return m_xlxNetworkTG;
|
||||
}
|
||||
|
||||
unsigned int CConf::getXLXNetworkBase() const
|
||||
{
|
||||
return m_xlxNetworkBase;
|
||||
}
|
||||
|
||||
std::string CConf::getXLXNetworkPassword() const
|
||||
{
|
||||
return m_xlxNetworkPassword;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue