diff options
author | Tambet Ingo <tambet@gmail.com> | 2009-02-20 12:10:12 +0200 |
---|---|---|
committer | Tambet Ingo <tambet@gmail.com> | 2009-02-20 12:10:12 +0200 |
commit | d8fa8d7d1bcfc29a0711c024e9e68bd6a9e1eeda (patch) | |
tree | abc91ee9f93acea90f23de253c77fe6c041fc916 | |
parent | 469529985d8f6f79739a69efb020be1b36489666 (diff) |
Eat "^BOOT:..." messages in Huawei plugin.
-rw-r--r-- | plugins/mm-modem-huawei.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mm-modem-huawei.c b/plugins/mm-modem-huawei.c index 0afb1168..994169c7 100644 --- a/plugins/mm-modem-huawei.c +++ b/plugins/mm-modem-huawei.c @@ -472,6 +472,10 @@ mm_modem_huawei_init (MMModemHuawei *self) regex = g_regex_new ("\\r\\n\\^DSFLOWRPT:(.+)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); mm_serial_add_unsolicited_msg_handler (MM_SERIAL (self), regex, handle_status_change, NULL, NULL); g_regex_unref (regex); + + regex = g_regex_new ("\\r\\n\\^BOOT:.+\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); + mm_serial_add_unsolicited_msg_handler (MM_SERIAL (self), regex, NULL, NULL, NULL); + g_regex_unref (regex); } static void |