Enable YSF network debug for DMR2YSF

This commit is contained in:
Andy CA6JAU
2018-10-08 20:30:31 -03:00
parent f2cc04bbb2
commit b84d4f3825
5 changed files with 16 additions and 4 deletions
+8
View File
@@ -44,6 +44,7 @@ m_localAddress(),
m_localPort(0U),
m_fcsFile(),
m_daemon(false),
m_debug(false),
m_dmrId(0U),
m_dmrRptAddress(),
m_dmrRptPort(0U),
@@ -129,6 +130,8 @@ bool CConf::read()
m_fcsFile = value;
else if (::strcmp(key, "Daemon") == 0)
m_daemon = ::atoi(value) == 1;
else if (::strcmp(key, "Debug") == 0)
m_debug = ::atoi(value) == 1;
} else if (section == SECTION_DMR_NETWORK) {
if (::strcmp(key, "Id") == 0)
m_dmrId = (unsigned int)::atoi(value);
@@ -205,6 +208,11 @@ bool CConf::getDaemon() const
return m_daemon;
}
bool CConf::getDebug() const
{
return m_debug;
}
unsigned int CConf::getDMRId() const
{
return m_dmrId;