summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2015-04-30 14:09:12 -0500
committerJesse Gilles <jgilles@multitech.com>2015-04-30 14:09:12 -0500
commit7c98bf3d264f7efa6c0b2657382c466a318ae343 (patch)
tree70af393c33deeaf26af45594d08989d46e086ed7
parent29b2b5959491946672e4cbb6126ef93c1281cd34 (diff)
downloadlibmts-io-7c98bf3d264f7efa6c0b2657382c466a318ae343.tar.gz
libmts-io-7c98bf3d264f7efa6c0b2657382c466a318ae343.tar.bz2
libmts-io-7c98bf3d264f7efa6c0b2657382c466a318ae343.zip
fix phone number read for H5 radios0.1
-rw-r--r--src/MTS_IO_CellularRadio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp
index 02bbd33..7391166 100644
--- a/src/MTS_IO_CellularRadio.cpp
+++ b/src/MTS_IO_CellularRadio.cpp
@@ -564,7 +564,7 @@ CellularRadio::CODE CellularRadio::getMdn(std::string& sMdn) {
if(start != std::string::npos) {
start += sizeof("CNUM:");
std::vector<std::string> vParts = MTS::Text::split(sResult.substr(start, end - start), ',');
- if(vParts.size() != 3) {
+ if(vParts.size() < 3) {
printWarning("%s| Unable to parse MDN from response [%s]", m_sName.c_str(), sResult.c_str());
return FAILURE;
}