simtech: +CNSMOD value may have multiple digits
We don't expect them in the set of values we support, but they may happen according to the spec.
This commit is contained in:
@@ -1220,7 +1220,7 @@ mm_broadband_modem_simtech_init (MMBroadbandModemSimtech *self)
|
||||
self->priv->cnsmod_support = FEATURE_SUPPORT_UNKNOWN;
|
||||
self->priv->autocsq_support = FEATURE_SUPPORT_UNKNOWN;
|
||||
|
||||
self->priv->cnsmod_regex = g_regex_new ("\\r\\n\\+CNSMOD:\\s*(\\d)\\r\\n",
|
||||
self->priv->cnsmod_regex = g_regex_new ("\\r\\n\\+CNSMOD:\\s*(\\d+)\\r\\n",
|
||||
G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
|
||||
self->priv->csq_regex = g_regex_new ("\\r\\n\\+CSQ:\\s*(\\d+),(\\d+)\\r\\n",
|
||||
G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
|
||||
|
Reference in New Issue
Block a user