summaryrefslogtreecommitdiff
path: root/src/MTS_IO_CellularRadio.cpp
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2018-10-31 15:55:31 -0500
committerJeff Hatch <jhatch@multitech.com>2018-10-31 15:55:31 -0500
commit2140f3948e70254ed70b0d543cb03e18564ec4f3 (patch)
tree55f1c1724d619bc5b4dfa7805cc68f2f047714dc /src/MTS_IO_CellularRadio.cpp
parent44a0b443fee1e43dc6e416b985a92e12cf89973a (diff)
downloadlibmts-io-2140f3948e70254ed70b0d543cb03e18564ec4f3.tar.gz
libmts-io-2140f3948e70254ed70b0d543cb03e18564ec4f3.tar.bz2
libmts-io-2140f3948e70254ed70b0d543cb03e18564ec4f3.zip
Add support for LE910C1-NS radio
Diffstat (limited to 'src/MTS_IO_CellularRadio.cpp')
-rw-r--r--src/MTS_IO_CellularRadio.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp
index f84cb6e..f2b4826 100644
--- a/src/MTS_IO_CellularRadio.cpp
+++ b/src/MTS_IO_CellularRadio.cpp
@@ -318,6 +318,9 @@ CellularRadio::CODE CellularRadio::convertModelToMtsShortCode(const std::string&
} else if (sModel.find("LE910-SVG") == 0) {
sCode = "LVW2";
eCode = SUCCESS;
+ } else if (sModel.find("LE910C1-NS") == 0) {
+ sCode = "LSP3";
+ eCode = SUCCESS;
} else if (sModel.find("ME910C1-NA") == 0) {
sCode = "MAT1";
eCode = SUCCESS;
@@ -402,6 +405,9 @@ CellularRadio::CODE CellularRadio::convertModelToType(const std::string& sModel,
} else if (sModel.find("LE910-EU1") == 0) {
sType = VALUE_TYPE_LTE;
eCode = SUCCESS;
+ } else if (sModel.find("LE910C1-NS") == 0) {
+ sType = VALUE_TYPE_LTE;
+ eCode = SUCCESS;
} else if (sModel.find("ME910C1-NA") == 0) {
sType = VALUE_TYPE_LTE;
eCode = SUCCESS;
@@ -1597,6 +1603,8 @@ std::string CellularRadio::extractModelFromResult(const std::string& sResult) {
sModel = "LE910-EUG";
} else if(sResult.find("LE910-EU1") != std::string::npos) {
sModel = "LE910-EU1";
+ } else if(sResult.find("LE910C1-NS") != std::string::npos) {
+ sModel = "LE910C1-NS";
} else if(sResult.find("GE910") != std::string::npos) {
sModel = "GE910";
} else if(sResult.find("DE910-DUAL") != std::string::npos) {