From bda86f553aefadb18a3dfa5795f1345c40a19738 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 9 Nov 2010 08:46:27 -0600 Subject: [PATCH] mbm: fix handling of unsolicited CIEV response Rob McQueen saw a 10 here, which means SMS full. Handle that. --- plugins/mm-modem-mbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mm-modem-mbm.c b/plugins/mm-modem-mbm.c index 9002ddcf..3a2cd424 100644 --- a/plugins/mm-modem-mbm.c +++ b/plugins/mm-modem-mbm.c @@ -926,7 +926,7 @@ grab_port (MMModem *modem, mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, mbm_pacsp_received, modem, NULL); g_regex_unref (regex); - regex = g_regex_new ("\\r\\n\\+CIEV: (\\d),(\\d)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); + regex = g_regex_new ("\\r\\n\\+CIEV: (\\d+),(\\d)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, mbm_ciev_received, modem, NULL); g_regex_unref (regex);