mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Add the maximum deviation level.
This commit is contained in:
8
Conf.cpp
8
Conf.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user