From d8fa8d7d1bcfc29a0711c024e9e68bd6a9e1eeda Mon Sep 17 00:00:00 2001 From: Tambet Ingo Date: Fri, 20 Feb 2009 12:10:12 +0200 Subject: [PATCH] Eat "^BOOT:..." messages in Huawei plugin. --- plugins/mm-modem-huawei.c | 4 ++++ 1 file changed, 4 insertions(+) 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