mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Split the DMR TX hang time from the mode hang time.
This commit is contained in:
8
Conf.cpp
8
Conf.cpp
@@ -87,6 +87,7 @@ m_dmrSelfOnly(false),
|
||||
m_dmrPrefixes(),
|
||||
m_dmrBlackList(),
|
||||
m_dmrLookupFile(),
|
||||
m_dmrTXHang(4U),
|
||||
m_fusionEnabled(true),
|
||||
m_fusionParrotEnabled(false),
|
||||
m_dstarNetworkEnabled(true),
|
||||
@@ -295,6 +296,8 @@ bool CConf::read()
|
||||
}
|
||||
} else if (::strcmp(key, "LookupFile") == 0)
|
||||
m_dmrLookupFile = value;
|
||||
else if (::strcmp(key, "TXHang") == 0)
|
||||
m_dmrTXHang = (unsigned int)::atoi(value);
|
||||
} else if (section == SECTION_FUSION) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_fusionEnabled = ::atoi(value) == 1;
|
||||
@@ -583,6 +586,11 @@ std::string CConf::getDMRLookupFile() const
|
||||
return m_dmrLookupFile;
|
||||
}
|
||||
|
||||
unsigned int CConf::getDMRTXHang() const
|
||||
{
|
||||
return m_dmrTXHang;
|
||||
}
|
||||
|
||||
bool CConf::getFusionEnabled() const
|
||||
{
|
||||
return m_fusionEnabled;
|
||||
|
||||
Reference in New Issue
Block a user