hso: fix small error in unlock retries checking
_OERCN only reports PIN and PUK, so we only check for two values.
This commit is contained in:

committed by
Aleksander Morgado

parent
32bc031ae6
commit
4e92b849af
@@ -143,7 +143,7 @@ load_unlock_retries_ready (MMBaseModem *self,
|
||||
}
|
||||
|
||||
response = mm_strip_tag (response, "_OERCN:");
|
||||
if (sscanf (response, " %d, %d", &pin1, &puk1) == 4) {
|
||||
if (sscanf (response, " %d, %d", &pin1, &puk1) == 2) {
|
||||
MMUnlockRetries *retries;
|
||||
retries = mm_unlock_retries_new ();
|
||||
mm_unlock_retries_set (retries, MM_MODEM_LOCK_SIM_PIN, pin1);
|
||||
|
Reference in New Issue
Block a user