From 4702ad3ce2f446c1ef91abdc2854c35df63c46ef Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 31 Jul 2018 14:30:43 -0700 Subject: [PATCH] teach others about itap --- QnetGateway.cpp | 3 +++ QnetRemote.cpp | 2 +- QnetVoice.cpp | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 517d6fc..1fbcad4 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -273,6 +273,9 @@ bool CQnetGateway::read_config(char *cfgFile) } else if (0 == type.compare("mmdvm")) { rptr.mod[m].package_version = MMDVM_VERSION; is_not_icom = true; + } else if (0 == type.compare("itap")) { + rptr.mod[m].package_version = ITAP_VERSION; + is_not_icom = true; } else { printf("module type '%s' is invalid\n", type.c_str()); return true; diff --git a/QnetRemote.cpp b/QnetRemote.cpp index c6c1274..e1bb139 100644 --- a/QnetRemote.cpp +++ b/QnetRemote.cpp @@ -198,7 +198,7 @@ bool read_config(const char *cfgFile) path += m + 'a'; std::string 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()); return true; } diff --git a/QnetVoice.cpp b/QnetVoice.cpp index 46d4ce4..6173bf6 100644 --- a/QnetVoice.cpp +++ b/QnetVoice.cpp @@ -98,7 +98,8 @@ bool read_config(const char *cfgFile) path += m + 'a'; std::string 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()); return true; }