Configure bug

main
Tom Early 2 years ago
parent 88046aba9e
commit 175ff2cde5

@ -32,7 +32,7 @@
#define DSTARGAININ "DStarGainIn" #define DSTARGAININ "DStarGainIn"
#define DSTARGAINOUT "DStarGainOut" #define DSTARGAINOUT "DStarGainOut"
#define MODULES "Modules" #define MODULES "Modules"
#define ADDRESS "Address" #define SERVERADDRESS "ServerAddress"
#define PORT "Port" #define PORT "Port"
static inline void split(const std::string &s, char delim, std::vector<std::string> &v) static inline void split(const std::string &s, char delim, std::vector<std::string> &v)
@ -110,7 +110,7 @@ bool CConfigure::ReadData(const std::string &path)
std::cout << "WARNING: missing key or value: '" << line << "'" << std::endl; std::cout << "WARNING: missing key or value: '" << line << "'" << std::endl;
continue; continue;
} }
if (0 == key.compare(ADDRESS)) if (0 == key.compare(SERVERADDRESS))
address.assign(value); address.assign(value);
else if (0 == key.compare(PORT)) else if (0 == key.compare(PORT))
porttmp.assign(value); porttmp.assign(value);
@ -163,7 +163,7 @@ bool CConfigure::ReadData(const std::string &path)
} }
std::cout << MODULES << " = " << tcmods << std::endl; std::cout << MODULES << " = " << tcmods << std::endl;
std::cout << ADDRESS << " = " << address << std::endl; std::cout << SERVERADDRESS << " = " << address << std::endl;
std::cout << PORT << " = " << port << std::endl; std::cout << PORT << " = " << port << std::endl;
std::cout << DSTARGAININ << " = " << dstar_in << std::endl; std::cout << DSTARGAININ << " = " << dstar_in << std::endl;
std::cout << DSTARGAINOUT << " = " << dstar_out << std::endl; std::cout << DSTARGAINOUT << " = " << dstar_out << std::endl;

@ -5,8 +5,7 @@
Port = 10100 Port = 10100
ServerAddress = 127.0.0.1 ServerAddress = 127.0.0.1
# VERY IMPORTANT: This need to be idential to the same line in [Transcder] section of the urfd ini file! # VERY IMPORTANT: This need to be idential to the same line in [Transcder] section of the urfd ini file!
# This will either be a single module (for DVSI-3000), or # This will either be a single module (for DVSI-3000), or up to three modules (for DVSI-3003).
# up to three modules (for DVSI-3003).
Modules = A Modules = A

Loading…
Cancel
Save

Powered by TurnKey Linux.