Add the maximum deviation level.

This commit is contained in:
Jonathan Naylor
2020-04-25 22:43:14 +01:00
parent 3d1602e50e
commit 56746e1320
6 changed files with 26 additions and 8 deletions

View File

@@ -198,6 +198,7 @@ m_fmKerchunkTime(0U),
m_fmHangTime(7U),
m_fmUseCOS(true),
m_fmRXBoost(1U),
m_fmMaxDevLevel(90.0F),
m_dstarNetworkEnabled(false),
m_dstarGatewayAddress(),
m_dstarGatewayPort(0U),
@@ -752,6 +753,8 @@ bool CConf::read()
m_fmUseCOS = ::atoi(value) == 1;
else if (::strcmp(key, "RXBoost") == 0)
m_fmRXBoost = (unsigned int)::atoi(value);
else if (::strcmp(key, "MaxDevLevel") == 0)
m_fmMaxDevLevel = float(::atof(value));
} else if (section == SECTION_DSTAR_NETWORK) {
if (::strcmp(key, "Enable") == 0)
m_dstarNetworkEnabled = ::atoi(value) == 1;
@@ -1619,6 +1622,11 @@ unsigned int CConf::getFMRXBoost() const
return m_fmRXBoost;
}
float CConf::getFMMaxDevLevel() const
{
return m_fmMaxDevLevel;
}
bool CConf::getDStarNetworkEnabled() const
{
return m_dstarNetworkEnabled;