mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Increase TA and GPS to message level, and allow it to be controlled from
the ini file.
This commit is contained in:
8
Conf.cpp
8
Conf.cpp
@@ -107,6 +107,7 @@ m_dmrId(0U),
|
||||
m_dmrColorCode(2U),
|
||||
m_dmrSelfOnly(false),
|
||||
m_dmrEmbeddedLCOnly(false),
|
||||
m_dmrDumpTAData(true),
|
||||
m_dmrPrefixes(),
|
||||
m_dmrBlackList(),
|
||||
m_dmrWhiteList(),
|
||||
@@ -378,6 +379,8 @@ bool CConf::read()
|
||||
m_dmrSelfOnly = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "EmbeddedLCOnly") == 0)
|
||||
m_dmrEmbeddedLCOnly = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "DumpTAData") == 0)
|
||||
m_dmrDumpTAData = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Prefixes") == 0) {
|
||||
char* p = ::strtok(value, ",\r\n");
|
||||
while (p != NULL) {
|
||||
@@ -824,6 +827,11 @@ bool CConf::getDMREmbeddedLCOnly() const
|
||||
return m_dmrEmbeddedLCOnly;
|
||||
}
|
||||
|
||||
bool CConf::getDMRDumpTAData() const
|
||||
{
|
||||
return m_dmrDumpTAData;
|
||||
}
|
||||
|
||||
std::vector<unsigned int> CConf::getDMRPrefixes() const
|
||||
{
|
||||
return m_dmrPrefixes;
|
||||
|
||||
Reference in New Issue
Block a user