Add Symbol= option to [APRS] stanza in config, to allow user to define APRS symbol. Backward-compat., and will default to the standard D& symbol (diamond with "D" overlay) if Symbol= is not defined.

This commit is contained in:
Chipster
2023-02-12 19:27:45 -06:00
parent 71b42aad36
commit 508692a554
6 changed files with 26 additions and 7 deletions

View File

@@ -182,6 +182,7 @@ m_aprsAddress(),
m_aprsPort(0U),
m_aprsSuffix(),
m_aprsDescription(),
m_aprsSymbol(),
m_dynamicTGControlEnabled(false),
m_dynamicTGControlPort(3769U),
m_remoteControlEnabled(false),
@@ -989,6 +990,8 @@ bool CConf::read()
m_aprsSuffix = value;
else if (::strcmp(key, "Description") == 0)
m_aprsDescription = value;
else if (::strcmp(key, "Symbol") == 0)
m_aprsSymbol = value;
} else if (section == SECTION_DYNAMIC_TG_CONTROL) {
if (::strcmp(key, "Enabled") == 0)
m_dynamicTGControlEnabled = ::atoi(value) == 1;
@@ -1702,6 +1705,11 @@ std::string CConf::getAPRSDescription() const
return m_aprsDescription;
}
std::string CConf::getAPRSSymbol() const
{
return m_aprsSymbol;
}
bool CConf::getDynamicTGControlEnabled() const
{
return m_dynamicTGControlEnabled;