modem-helpers: allow strings instead of indexes in CIEV unsolicited events
Some modems will report strings instead of indicator indexes, like: +CIEV: roam,1 So allow non-integer indicators.
This commit is contained in:
@@ -537,7 +537,7 @@ mm_3gpp_creg_regex_destroy (GPtrArray *array)
|
|||||||
GRegex *
|
GRegex *
|
||||||
mm_3gpp_ciev_regex_get (void)
|
mm_3gpp_ciev_regex_get (void)
|
||||||
{
|
{
|
||||||
return g_regex_new ("\\r\\n\\+CIEV: (\\d+),(\\d)\\r\\n",
|
return g_regex_new ("\\r\\n\\+CIEV: (.*),(\\d)\\r\\n",
|
||||||
G_REGEX_RAW | G_REGEX_OPTIMIZE,
|
G_REGEX_RAW | G_REGEX_OPTIMIZE,
|
||||||
0,
|
0,
|
||||||
NULL);
|
NULL);
|
||||||
|
Reference in New Issue
Block a user