Handle any frequency offset in the oscillator.

This commit is contained in:
Jonathan Naylor
2016-03-21 21:50:45 +00:00
parent dc08c18db7
commit a3c25766c0
6 changed files with 26 additions and 9 deletions

View File

@@ -69,6 +69,7 @@ m_modemTXDelay(100U),
m_modemDMRDelay(0U),
m_modemRXLevel(100U),
m_modemTXLevel(100U),
m_modemOscOffset(0),
m_modemDebug(false),
m_dstarEnabled(true),
m_dstarModule("C"),
@@ -212,6 +213,8 @@ bool CConf::read()
m_modemRXLevel = (unsigned int)::atoi(value);
else if (::strcmp(key, "TXLevel") == 0)
m_modemTXLevel = (unsigned int)::atoi(value);
else if (::strcmp(key, "OscOffset") == 0)
m_modemOscOffset = ::atoi(value);
else if (::strcmp(key, "Debug") == 0)
m_modemDebug = ::atoi(value) == 1;
} else if (section == SECTION_DSTAR) {
@@ -416,6 +419,11 @@ unsigned int CConf::getModemTXLevel() const
return m_modemTXLevel;
}
int CConf::getModemOscOffset() const
{
return m_modemOscOffset;
}
bool CConf::getModemDebug() const
{
return m_modemDebug;