summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/MTS_IO_QuectelRadio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp
index b8c781f..a9f9721 100644
--- a/src/MTS_IO_QuectelRadio.cpp
+++ b/src/MTS_IO_QuectelRadio.cpp
@@ -525,9 +525,9 @@ CellularRadio::CODE QuectelRadio::getIsSimInserted(bool& bData) {
CellularRadio::CODE QuectelRadio::getSimLockAttempts(int& iAttemptsPin, int& iAttemptsPuk) {
printTrace("%s| Get SIM unlock attempts left", getName().c_str());
- // AT+QPINC execution can take up to 300ms according to the datasheet. Setting timeout to 500ms just for sure.
+ // AT+QPINC execution can take more time that expected. Set timeout to 2s just to be sure.
std::string sCmd("AT+QPINC=\"SC\"");
- std::string sResult = sendCommand(sCmd, DEFAULT_BAIL_STRINGS, 500);
+ std::string sResult = sendCommand(sCmd, DEFAULT_BAIL_STRINGS, 2000);
const std::string sPrefix = "+QPINC: \"SC\",";
size_t start = sResult.find(sPrefix);