Make AckTime adjustable

This commit is contained in:
phl0
2017-06-14 12:54:44 +02:00
parent 348e682610
commit f0fc7c7ec9
6 changed files with 21 additions and 8 deletions

View File

@@ -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;