base-modem: initially set the unsolicited CUSD handler with NULL callback

This commit is contained in:
Aleksander Morgado
2012-01-23 15:19:28 +01:00
parent f37a1a2b62
commit 81d130b2bb

View File

@@ -259,10 +259,14 @@ mm_base_modem_grab_port (MMBaseModem *self,
/* mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, cmti_received, self, NULL); */
/* g_regex_unref (regex); */
/* regex = g_regex_new ("\\r\\n\\+CUSD:\\s*(.*)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); */
/* mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, cusd_received, self, NULL); */
/* g_regex_unref (regex); */
/* } */
/* Set up CUSD unsolicited message handler, with NULL callback */
regex = mm_3gpp_cusd_regex_get ();
mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port),
regex,
NULL,
NULL,
NULL);
g_regex_unref (regex);
if (ptype == MM_PORT_TYPE_PRIMARY) {
self->priv->primary = g_object_ref (port);