From 6cbeb96aa0b2f18e16ebf43e158a204281ad6b92 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 17 Sep 2019 13:05:47 +0200 Subject: 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. --- plugins/simtech/mm-broadband-modem-simtech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/simtech/mm-broadband-modem-simtech.c') diff --git a/plugins/simtech/mm-broadband-modem-simtech.c b/plugins/simtech/mm-broadband-modem-simtech.c index 9a55ed40..3d649a6e 100644 --- a/plugins/simtech/mm-broadband-modem-simtech.c +++ b/plugins/simtech/mm-broadband-modem-simtech.c @@ -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); -- cgit v1.2.3-70-g09d2