summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2019-07-05 12:53:11 +0300
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2019-07-05 12:59:16 +0300
commit0de89b68bd4471df424eca976d60ae98dea309df (patch)
tree213748d5307522c7e4b769ccba67de39984d34f6
parent4ef332ec707946a3cf2a55473d05dfc9af3d4b11 (diff)
downloadlibmts-io-0de89b68bd4471df424eca976d60ae98dea309df.tar.gz
libmts-io-0de89b68bd4471df424eca976d60ae98dea309df.tar.bz2
libmts-io-0de89b68bd4471df424eca976d60ae98dea309df.zip
[MTX-2886] MTR_MTQ - radio-cmd shows invalid message on valid SIM PIN
Added a timeout of 5 seconds for the SIM PIN unlock command
-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 df1303c..500f352 100644
--- a/src/MTS_IO_CellularRadio.cpp
+++ b/src/MTS_IO_CellularRadio.cpp
@@ -854,7 +854,7 @@ CellularRadio::CODE CellularRadio::unlockSimCard(const Json::Value& jArgs) {
}
std::string sCmd = "AT+CPIN=" + jArgs["pin"].asString();
- std::string sResult = sendCommand(sCmd);
+ std::string sResult = sendCommand(sCmd, DEFAULT_BAIL_STRINGS, 5000);
size_t pos = sResult.find(ICellularRadio::RSP_OK);
if (pos == std::string::npos) {