base-modem: initially set the unsolicited CUSD handler with NULL callback
This commit is contained in:
@@ -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); */
|
/* mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, cmti_received, self, NULL); */
|
||||||
/* g_regex_unref (regex); */
|
/* g_regex_unref (regex); */
|
||||||
|
|
||||||
/* regex = g_regex_new ("\\r\\n\\+CUSD:\\s*(.*)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); */
|
/* Set up CUSD unsolicited message handler, with NULL callback */
|
||||||
/* mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, cusd_received, self, NULL); */
|
regex = mm_3gpp_cusd_regex_get ();
|
||||||
/* g_regex_unref (regex); */
|
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) {
|
if (ptype == MM_PORT_TYPE_PRIMARY) {
|
||||||
self->priv->primary = g_object_ref (port);
|
self->priv->primary = g_object_ref (port);
|
||||||
|
Reference in New Issue
Block a user