mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Adding ini options for TGRewrite code
This commit is contained in:
parent
aa69f1a660
commit
65bdc54997
9 changed files with 43 additions and 34 deletions
10
Conf.cpp
10
Conf.cpp
|
|
@ -97,7 +97,7 @@ m_dmrSelfOnly(false),
|
|||
m_TGRewriteSlot1(false),
|
||||
m_TGRewriteSlot2(false),
|
||||
m_BMAutoRewrite(false),
|
||||
m_DirectDial(false),
|
||||
m_BMRewriteReflectorVoicePrompts(false),
|
||||
m_dmrPrefixes(),
|
||||
m_dmrBlackList(),
|
||||
m_dmrDstIdBlacklistSlot1RF(),
|
||||
|
|
@ -206,7 +206,7 @@ bool CConf::read()
|
|||
section = SECTION_NEXTION;
|
||||
else if (::strncmp(buffer, "[OLED]", 6U) == 0)
|
||||
section = SECTION_OLED;
|
||||
else if (::strncmp(buffer, "[DMR TG Rewirte]", 16U) == 0)
|
||||
else if (::strncmp(buffer, "[DMR TG Rewrite]", 16U) == 0)
|
||||
section = SECTION_TGREWRITE;
|
||||
else
|
||||
section = SECTION_NONE;
|
||||
|
|
@ -528,7 +528,7 @@ bool CConf::read()
|
|||
m_TGRewriteSlot2 = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "BMAutoRewrite") == 0)
|
||||
m_BMAutoRewrite = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "DirectDial") == 0)
|
||||
else if (::strcmp(key, "BMRewriteReflectorVoicePrompts") == 0)
|
||||
m_BMAutoRewrite = ::atoi(value) == 1;
|
||||
|
||||
}
|
||||
|
|
@ -780,9 +780,9 @@ bool CConf::getDMRBMAutoRewrite() const
|
|||
return m_BMAutoRewrite;
|
||||
}
|
||||
|
||||
bool CConf::getDMRDirectDial() const
|
||||
bool CConf::getDMRBMRewriteReflectorVoicePrompts() const
|
||||
{
|
||||
return m_DirectDial;
|
||||
return m_BMRewriteReflectorVoicePrompts;
|
||||
}
|
||||
|
||||
std::vector<unsigned int> CConf::getDMRPrefixes() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue