Wires-X upper case for YSF2NXDN and YSF2P25

This commit is contained in:
Andy CA6JAU
2019-01-27 11:49:46 -03:00
parent faf78a842f
commit 220ce15db1
12 changed files with 60 additions and 22 deletions
+10 -2
View File
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2015,2016,2017 by Jonathan Naylor G4KLX
* Copyright (C) 2018 by Andy Uribe CA6JAU
* Copyright (C) 2015-2019 by Jonathan Naylor G4KLX
* Copyright (C) 2018,2019 by Andy Uribe CA6JAU
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -46,6 +46,7 @@ m_dstPort(0U),
m_localAddress(),
m_localPort(0U),
m_enableWiresX(false),
m_wiresXMakeUpper(true),
m_daemon(false),
m_rxFrequency(0U),
m_txFrequency(0U),
@@ -164,6 +165,8 @@ bool CConf::read()
m_localPort = (unsigned int)::atoi(value);
else if (::strcmp(key, "EnableWiresX") == 0)
m_enableWiresX = ::atoi(value) == 1;
else if (::strcmp(key, "WiresXMakeUpper") == 0)
m_wiresXMakeUpper = ::atoi(value) == 1;
else if (::strcmp(key, "Daemon") == 0)
m_daemon = ::atoi(value) == 1;
} else if (section == SECTION_NXDN_NETWORK) {
@@ -285,6 +288,11 @@ bool CConf::getEnableWiresX() const
return m_enableWiresX;
}
bool CConf::getWiresXMakeUpper() const
{
return m_wiresXMakeUpper;
}
bool CConf::getDaemon() const
{
return m_daemon;