mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Make the D-Star ack optional.
This commit is contained in:
parent
6d2123cc49
commit
043ffe96d9
6 changed files with 22 additions and 5 deletions
10
Conf.cpp
10
Conf.cpp
|
|
@ -100,6 +100,7 @@ m_dstarEnabled(false),
|
|||
m_dstarModule("C"),
|
||||
m_dstarSelfOnly(false),
|
||||
m_dstarBlackList(),
|
||||
m_dstarAckReply(true),
|
||||
m_dstarErrorReply(true),
|
||||
m_dmrEnabled(false),
|
||||
m_dmrBeacons(false),
|
||||
|
|
@ -373,7 +374,9 @@ bool CConf::read()
|
|||
}
|
||||
p = ::strtok(NULL, ",\r\n");
|
||||
}
|
||||
} else if (::strcmp(key, "ErrorReply") == 0)
|
||||
} else if (::strcmp(key, "AckReply") == 0)
|
||||
m_dstarAckReply = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "ErrorReply") == 0)
|
||||
m_dstarErrorReply = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_DMR) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
|
|
@ -805,6 +808,11 @@ std::vector<std::string> CConf::getDStarBlackList() const
|
|||
return m_dstarBlackList;
|
||||
}
|
||||
|
||||
bool CConf::getDStarAckReply() const
|
||||
{
|
||||
return m_dstarAckReply;
|
||||
}
|
||||
|
||||
bool CConf::getDStarErrorReply() const
|
||||
{
|
||||
return m_dstarErrorReply;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue