mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Add the optional System Fusion Parrot.
This commit is contained in:
8
Conf.cpp
8
Conf.cpp
@@ -75,6 +75,7 @@ m_dmrBeacons(false),
|
||||
m_dmrId(0U),
|
||||
m_dmrColorCode(2U),
|
||||
m_fusionEnabled(true),
|
||||
m_fusionParrotEnabled(false),
|
||||
m_dstarNetworkEnabled(true),
|
||||
m_dstarGatewayAddress(),
|
||||
m_dstarGatewayPort(0U),
|
||||
@@ -222,6 +223,8 @@ bool CConf::read()
|
||||
} else if (section == SECTION_FUSION) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_fusionEnabled = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Parrot") == 0)
|
||||
m_fusionParrotEnabled = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_DSTAR_NETWORK) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_dstarNetworkEnabled = ::atoi(value) == 1;
|
||||
@@ -435,6 +438,11 @@ bool CConf::getFusionEnabled() const
|
||||
return m_fusionEnabled;
|
||||
}
|
||||
|
||||
bool CConf::getFusionParrotEnabled() const
|
||||
{
|
||||
return m_fusionParrotEnabled;
|
||||
}
|
||||
|
||||
bool CConf::getDStarNetworkEnabled() const
|
||||
{
|
||||
return m_dstarNetworkEnabled;
|
||||
|
||||
Reference in New Issue
Block a user