Add APRS Symbol option (based on my PR https://github.com/g4klx/DMRGateway/pull/122)

This commit is contained in:
Chipster 2023-02-13 06:59:27 -06:00
parent 471d031a08
commit e3dd9f5321
7 changed files with 26 additions and 7 deletions

View file

@ -71,6 +71,7 @@ m_aprsAddress(),
m_aprsPort(0U),
m_aprsSuffix(),
m_aprsDescription(),
m_aprsSymbol(),
m_ysfNetHosts(),
m_ysfRFHangTime(60U),
m_ysfNetHangTime(60U),
@ -230,6 +231,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_YSF_NETWORK) {
if (::strcmp(key, "Hosts") == 0)
m_ysfNetHosts = value;
@ -450,6 +453,11 @@ std::string CConf::getAPRSDescription() const
return m_aprsDescription;
}
std::string CConf::getAPRSSymbol() const
{
return m_aprsSymbol;
}
std::string CConf::getYSFNetHosts() const
{
return m_ysfNetHosts;