mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 22:45:31 +00:00
Add an optional error reply for D-Star.
This commit is contained in:
parent
4b07afa17e
commit
ac22f0b783
7 changed files with 119 additions and 15 deletions
9
Conf.cpp
9
Conf.cpp
|
|
@ -99,6 +99,7 @@ m_dstarEnabled(false),
|
|||
m_dstarModule("C"),
|
||||
m_dstarSelfOnly(false),
|
||||
m_dstarBlackList(),
|
||||
m_dstarErrorReply(true),
|
||||
m_dmrEnabled(false),
|
||||
m_dmrBeacons(false),
|
||||
m_dmrId(0U),
|
||||
|
|
@ -359,7 +360,8 @@ bool CConf::read()
|
|||
}
|
||||
p = ::strtok(NULL, ",\r\n");
|
||||
}
|
||||
}
|
||||
} else if (::strcmp(key, "ErrorReply") == 0)
|
||||
m_dstarErrorReply = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_DMR) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_dmrEnabled = ::atoi(value) == 1;
|
||||
|
|
@ -779,6 +781,11 @@ std::vector<std::string> CConf::getDStarBlackList() const
|
|||
return m_dstarBlackList;
|
||||
}
|
||||
|
||||
bool CConf::getDStarErrorReply() const
|
||||
{
|
||||
return m_dstarErrorReply;
|
||||
}
|
||||
|
||||
bool CConf::getDMREnabled() const
|
||||
{
|
||||
return m_dmrEnabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue