mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Make AckTime adjustable
This commit is contained in:
parent
348e682610
commit
f0fc7c7ec9
6 changed files with 21 additions and 8 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -101,6 +101,7 @@ m_dstarModule("C"),
|
|||
m_dstarSelfOnly(false),
|
||||
m_dstarBlackList(),
|
||||
m_dstarAckReply(true),
|
||||
m_dstarAckTime(1000U),
|
||||
m_dstarErrorReply(true),
|
||||
m_dmrEnabled(false),
|
||||
m_dmrBeacons(false),
|
||||
|
|
@ -376,6 +377,8 @@ bool CConf::read()
|
|||
}
|
||||
} else if (::strcmp(key, "AckReply") == 0)
|
||||
m_dstarAckReply = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "AckTime") == 0)
|
||||
m_dstarAckTime = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "ErrorReply") == 0)
|
||||
m_dstarErrorReply = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_DMR) {
|
||||
|
|
@ -813,6 +816,11 @@ bool CConf::getDStarAckReply() const
|
|||
return m_dstarAckReply;
|
||||
}
|
||||
|
||||
unsigned int CConf::getDStarAckTime() const
|
||||
{
|
||||
return m_dstarAckTime;
|
||||
}
|
||||
|
||||
bool CConf::getDStarErrorReply() const
|
||||
{
|
||||
return m_dstarErrorReply;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue