From 7c98bf3d264f7efa6c0b2657382c466a318ae343 Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Thu, 30 Apr 2015 14:09:12 -0500 Subject: fix phone number read for H5 radios --- src/MTS_IO_CellularRadio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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; } -- cgit v1.2.3