mirror of
https://github.com/ShaYmez/MMDVM_CM.git
synced 2025-03-12 15:28:58 -04:00
Add Wires-X upper case option (WIP)
This commit is contained in:
parent
6fd8ac81a0
commit
05e4193349
@ -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
|
||||
* Copyright (C) 2018 by Manuel Sanchez EA7EE
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -49,6 +49,7 @@ m_localPort(0U),
|
||||
m_enableWiresX(false),
|
||||
m_remoteGateway(false),
|
||||
m_hangTime(1000U),
|
||||
m_wiresXMakeUpper(true),
|
||||
m_daemon(false),
|
||||
m_rxFrequency(0U),
|
||||
m_txFrequency(0U),
|
||||
@ -171,6 +172,8 @@ bool CConf::read()
|
||||
m_remoteGateway = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "HangTime") == 0)
|
||||
m_hangTime = (unsigned int)::atoi(value);
|
||||
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_INFO) {
|
||||
@ -319,6 +322,11 @@ unsigned int CConf::getHangTime() const
|
||||
return m_hangTime;
|
||||
}
|
||||
|
||||
bool CConf::getWiresXMakeUpper() const
|
||||
{
|
||||
return m_wiresXMakeUpper;
|
||||
}
|
||||
|
||||
bool CConf::getDaemon() const
|
||||
{
|
||||
return m_daemon;
|
||||
|
@ -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
|
||||
* Copyright (C) 2018 by Manuel Sanchez EA7EE
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -42,6 +42,7 @@ public:
|
||||
bool getEnableWiresX() const;
|
||||
bool getRemoteGateway() const;
|
||||
unsigned int getHangTime() const;
|
||||
bool getWiresXMakeUpper() const;
|
||||
bool getDaemon() const;
|
||||
|
||||
// The Info section
|
||||
@ -106,6 +107,7 @@ private:
|
||||
bool m_enableWiresX;
|
||||
bool m_remoteGateway;
|
||||
unsigned int m_hangTime;
|
||||
bool m_wiresXMakeUpper;
|
||||
bool m_daemon;
|
||||
|
||||
unsigned int m_rxFrequency;
|
||||
|
@ -20,6 +20,7 @@ LocalPort=42013
|
||||
EnableWiresX=1
|
||||
RemoteGateway=0
|
||||
HangTime=1000
|
||||
WiresXMakeUpper=1
|
||||
Daemon=0
|
||||
|
||||
[DMR Network]
|
||||
|
Loading…
Reference in New Issue
Block a user