aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorgny Johansson <torgny.johansson@ericsson.com>2010-05-17 21:59:58 -0700
committerDan Williams <dcbw@redhat.com>2010-05-17 21:59:58 -0700
commit6a663c3a48ee3ce12cda2fa9ceeb1e15a90ae745 (patch)
tree2858fdd738c641fffaf9804b054bf041641a538b
parent15962279a333d60e3eda6001fb8c836eadd9f542 (diff)
mbm: catch *E2NAP error codes too
-rw-r--r--plugins/mm-modem-mbm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mm-modem-mbm.c b/plugins/mm-modem-mbm.c
index 103e5bc0..10be0be8 100644
--- a/plugins/mm-modem-mbm.c
+++ b/plugins/mm-modem-mbm.c
@@ -766,6 +766,11 @@ grab_port (MMModem *modem,
regex = g_regex_new ("\\r\\n\\*E2NAP: (\\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_e2nap_received, modem, NULL);
g_regex_unref (regex);
+
+ /* Catch the extended error status bit of the command too */
+ regex = g_regex_new ("\\r\\n\\*E2NAP: (\\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_e2nap_received, modem, NULL);
+ g_regex_unref (regex);
}
regex = g_regex_new ("\\r\\n\\*EMRDY: \\d\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);