Add Manuel EA7EE contributions

This commit is contained in:
Andy CA6JAU
2018-12-09 20:58:32 -03:00
parent 7d463c61a6
commit fc22276397
11 changed files with 189 additions and 19 deletions
+12 -1
View File
@@ -86,6 +86,7 @@ m_aprsEnabled(false),
m_aprsServer(),
m_aprsPort(0U),
m_aprsPassword(),
m_aprsCallsign(),
m_aprsAPIKey(),
m_aprsRefresh(120),
m_aprsDescription()
@@ -246,7 +247,12 @@ bool CConf::read()
else if (::strcmp(key, "DisplayLevel") == 0)
m_logDisplayLevel = (unsigned int)::atoi(value);
} else if (section == SECTION_APRS_FI) {
if (::strcmp(key, "Enable") == 0)
if (::strcmp(key, "AprsCallsign") == 0) {
// Convert the callsign to upper case
for (unsigned int i = 0U; value[i] != 0; i++)
value[i] = ::toupper(value[i]);
m_aprsCallsign = value;
} else if (::strcmp(key, "Enable") == 0)
m_aprsEnabled = ::atoi(value) == 1;
else if (::strcmp(key, "Server") == 0)
m_aprsServer = value;
@@ -408,6 +414,11 @@ unsigned int CConf::getAPRSPort() const
return m_aprsPort;
}
std::string CConf::getAPRSCallsign() const
{
return m_aprsCallsign;
}
std::string CConf::getAPRSPassword() const
{
return m_aprsPassword;