mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
wip
This commit is contained in:
parent
ec1692608d
commit
90bad8d9c8
3 changed files with 31 additions and 13 deletions
17
Conf.cpp
17
Conf.cpp
|
|
@ -43,7 +43,8 @@ enum SECTION {
|
|||
SECTION_TFTSERIAL,
|
||||
SECTION_HD44780,
|
||||
SECTION_NEXTION,
|
||||
SECTION_OLED
|
||||
SECTION_OLED,
|
||||
SECTION_TGREWRITE
|
||||
};
|
||||
|
||||
CConf::CConf(const std::string& file) :
|
||||
|
|
@ -95,6 +96,8 @@ m_dmrColorCode(2U),
|
|||
m_dmrSelfOnly(false),
|
||||
m_TGRewriteSlot1(false),
|
||||
m_TGRewriteSlot2(false),
|
||||
m_BMAutoRewrite(false),
|
||||
m_DirectDial(false),
|
||||
m_dmrPrefixes(),
|
||||
m_dmrBlackList(),
|
||||
m_dmrDstIdBlacklistSlot1RF(),
|
||||
|
|
@ -204,7 +207,7 @@ bool CConf::read()
|
|||
else if (::strncmp(buffer, "[OLED]", 6U) == 0)
|
||||
section = SECTION_OLED;
|
||||
else if (::strncmp(buffer, "[DMR TG Rewirte]", 16U) == 0)
|
||||
section = SECTION_TGREWRITE
|
||||
section = SECTION_TGREWRITE;
|
||||
else
|
||||
section = SECTION_NONE;
|
||||
|
||||
|
|
@ -772,6 +775,16 @@ bool CConf::getDMRTGRewriteSlot2() const
|
|||
return m_TGRewriteSlot2;
|
||||
}
|
||||
|
||||
bool CConf::getDMRBMAutoRewrite() const
|
||||
{
|
||||
return m_BMAutoRewrite;
|
||||
}
|
||||
|
||||
bool CConf::getDMRDirectDial() const
|
||||
{
|
||||
return m_DirectDial;
|
||||
}
|
||||
|
||||
std::vector<unsigned int> CConf::getDMRPrefixes() const
|
||||
{
|
||||
return m_dmrPrefixes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue