[PATCH 4/5] allow space in response to +CRSM=176, 28589, 0, 0, 4 (mnc) and +CRSM=176, 28486, 0, 0, 17 (spn)

Thomas Sailer sailer at sailer.dynip.lugs.ch
Thu Feb 11 12:45:11 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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mm-base-sim.c b/src/mm-base-sim.c
index 20b9923..e6bb5ba 100644
--- a/src/mm-base-sim.c
+++ b/src/mm-base-sim.c
@@ -1111,7 +1111,7 @@ parse_mnc_length (const gchar *response,
         success = TRUE;
     else {
         /* May not include quotes... */
-        if (sscanf (response, "+CRSM:%d,%d,%50c", &sw1, &sw2, (char *) &hex) == 3)
+        if (sscanf (response, "+CRSM:%d,%d, %50c", &sw1, &sw2, (char *) &hex) == 3)
             success = TRUE;
     }
 
@@ -1248,7 +1248,7 @@ parse_spn (const gchar *response,
         success = TRUE;
     else {
         /* May not include quotes... */
-        if (sscanf (response, "+CRSM:%d,%d,%50c", &sw1, &sw2, (char *) &hex) == 3)
+        if (sscanf (response, "+CRSM:%d,%d, %50c", &sw1, &sw2, (char *) &hex) == 3)
             success = TRUE;
     }
 
-- 
2.5.0



More information about the ModemManager-devel mailing list