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:
Aleksander Morgado
2019-09-17 13:05:47 +02:00
parent e1d18afe39
commit 6cbeb96aa0

View File

@@ -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);