teach others about itap

pull/5/head
Tom Early 7 years ago
parent b026274c5a
commit 4702ad3ce2

@ -273,6 +273,9 @@ bool CQnetGateway::read_config(char *cfgFile)
} else if (0 == type.compare("mmdvm")) { } else if (0 == type.compare("mmdvm")) {
rptr.mod[m].package_version = MMDVM_VERSION; rptr.mod[m].package_version = MMDVM_VERSION;
is_not_icom = true; is_not_icom = true;
} else if (0 == type.compare("itap")) {
rptr.mod[m].package_version = ITAP_VERSION;
is_not_icom = true;
} else { } else {
printf("module type '%s' is invalid\n", type.c_str()); printf("module type '%s' is invalid\n", type.c_str());
return true; return true;

@ -198,7 +198,7 @@ bool read_config(const char *cfgFile)
path += m + 'a'; path += m + 'a';
std::string type; std::string type;
if (cfg.lookupValue(std::string(path+".type").c_str(), type)) { if (cfg.lookupValue(std::string(path+".type").c_str(), type)) {
if (type.compare("dvap") && type.compare("dvrptr") && type.compare("mmdvm") && type.compare("icom")) { if (type.compare("dvap") && type.compare("dvrptr") && type.compare("mmdvm") && type.compare("icom") && type.compare("itap")) {
printf("module type '%s' is invalid\n", type.c_str()); printf("module type '%s' is invalid\n", type.c_str());
return true; return true;
} }

@ -98,7 +98,8 @@ bool read_config(const char *cfgFile)
path += m + 'a'; path += m + 'a';
std::string type; std::string type;
if (cfg.lookupValue(std::string(path+".type").c_str(), type)) { if (cfg.lookupValue(std::string(path+".type").c_str(), type)) {
if (strcasecmp(type.c_str(), "dvap") && strcasecmp(type.c_str(), "dvrptr") && strcasecmp(type.c_str(), "mmdvm") && strcasecmp(type.c_str(), "icom")) { if (strcasecmp(type.c_str(), "dvap") && strcasecmp(type.c_str(), "dvrptr") && strcasecmp(type.c_str(), "mmdvm") &&
strcasecmp(type.c_str(), "icom") && strcasecmp(type.c_str(), "itap")) {
printf("module type '%s' is invalid\n", type.c_str()); printf("module type '%s' is invalid\n", type.c_str());
return true; return true;
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.