[PATCH 3/5] allow space before ICCID in +CRSM response. Thuraya XT sends +CRSM: 144, 0, 9888...

Thomas Sailer sailer at sailer.dynip.lugs.ch
Thu Feb 11 12:45:10 UTC 2016


From: Thomas Sailer <t.sailer at alumni.ethz.ch>

Signed-off-by: Thomas Sailer <t.sailer at alumni.ethz.ch>
---
 src/mm-base-sim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mm-base-sim.c b/src/mm-base-sim.c
index 104e7f8..20b9923 100644
--- a/src/mm-base-sim.c
+++ b/src/mm-base-sim.c
@@ -956,7 +956,7 @@ parse_iccid (const gchar *response,
         success = TRUE;
     else {
         /* May not include quotes... */
-        if (sscanf (str, "%d,%d,%20c", &sw1, &sw2, (char *) &buf) == 3)
+        if (sscanf (str, "%d,%d, %20c", &sw1, &sw2, (char *) &buf) == 3)
             success = TRUE;
     }
 
-- 
2.5.0



More information about the ModemManager-devel mailing list