mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Move modem tracing to Trace and add a new modem Debug function.
This commit is contained in:
parent
0fe100b01c
commit
9ac4919a4c
6 changed files with 45 additions and 29 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -92,6 +92,7 @@ m_modemDMRTXLevel(50U),
|
|||
m_modemYSFTXLevel(50U),
|
||||
m_modemP25TXLevel(50U),
|
||||
m_modemRSSIMappingFile(),
|
||||
m_modemTrace(false),
|
||||
m_modemDebug(false),
|
||||
m_umpEnabled(false),
|
||||
m_umpPort(),
|
||||
|
|
@ -341,6 +342,8 @@ bool CConf::read()
|
|||
m_modemP25TXLevel = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "RSSIMappingFile") == 0)
|
||||
m_modemRSSIMappingFile = value;
|
||||
else if (::strcmp(key, "Trace") == 0)
|
||||
m_modemTrace = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
m_modemDebug = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_UMP) {
|
||||
|
|
@ -762,6 +765,11 @@ std::string CConf::getModemRSSIMappingFile () const
|
|||
return m_modemRSSIMappingFile;
|
||||
}
|
||||
|
||||
bool CConf::getModemTrace() const
|
||||
{
|
||||
return m_modemTrace;
|
||||
}
|
||||
|
||||
bool CConf::getModemDebug() const
|
||||
{
|
||||
return m_modemDebug;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue