mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Add fine adjustments to DMR/YSF thresholds.
This commit is contained in:
parent
9240550de6
commit
768e3efcad
6 changed files with 62 additions and 19 deletions
16
Conf.cpp
16
Conf.cpp
|
|
@ -82,6 +82,8 @@ m_modemDMRLevel1(0),
|
|||
m_modemDMRLevel3(0),
|
||||
m_modemYSFLevel1(0),
|
||||
m_modemYSFLevel3(0),
|
||||
m_modemDMRThreshold(0),
|
||||
m_modemYSFThreshold(0),
|
||||
m_modemOscOffset(0),
|
||||
m_modemDebug(false),
|
||||
m_dstarEnabled(true),
|
||||
|
|
@ -280,6 +282,10 @@ bool CConf::read()
|
|||
m_modemYSFLevel1 = ::atoi(value);
|
||||
else if (::strcmp(key, "YSFLevel3") == 0)
|
||||
m_modemYSFLevel3 = ::atoi(value);
|
||||
else if (::strcmp(key, "DMRThreshold") == 0)
|
||||
m_modemDMRThreshold = ::atoi(value);
|
||||
else if (::strcmp(key, "YSFThreshold") == 0)
|
||||
m_modemYSFThreshold = ::atoi(value);
|
||||
else if (::strcmp(key, "OscOffset") == 0)
|
||||
m_modemOscOffset = ::atoi(value);
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
|
|
@ -641,6 +647,16 @@ int CConf::getModemYSFLevel3() const
|
|||
return m_modemYSFLevel3;
|
||||
}
|
||||
|
||||
int CConf::getModemDMRThreshold() const
|
||||
{
|
||||
return m_modemDMRThreshold;
|
||||
}
|
||||
|
||||
int CConf::getModemYSFThreshold() const
|
||||
{
|
||||
return m_modemYSFThreshold;
|
||||
}
|
||||
|
||||
int CConf::getModemOscOffset() const
|
||||
{
|
||||
return m_modemOscOffset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue