mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-20 21:25:37 +08:00
Add an XLX base so the control ids can be shifted.
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user