From 0de89b68bd4471df424eca976d60ae98dea309df Mon Sep 17 00:00:00 2001 From: Serhii Kostiuk Date: Fri, 5 Jul 2019 12:53:11 +0300 Subject: [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 --- src/MTS_IO_CellularRadio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3