From 7a0c5030364689620d0ef03573f3ab53e0727be3 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 12 Mar 2010 10:16:24 -0800 Subject: [PATCH] cdma: use E1 parser to ignore re-echoed commands Some modems turn E1 on and off random (Huawei EC168C) and sometimes the echoed command confuses things. We have a parser just for that, so let's use it. It should be safe to use with devices that repect E0 too. --- src/mm-generic-cdma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mm-generic-cdma.c b/src/mm-generic-cdma.c index ff156412..d93dc915 100644 --- a/src/mm-generic-cdma.c +++ b/src/mm-generic-cdma.c @@ -151,9 +151,9 @@ mm_generic_cdma_grab_port (MMGenericCdma *self, if (port && MM_IS_SERIAL_PORT (port)) { g_object_set (G_OBJECT (port), MM_PORT_CARRIER_DETECT, FALSE, NULL); mm_serial_port_set_response_parser (MM_SERIAL_PORT (port), - mm_serial_parser_v1_parse, - mm_serial_parser_v1_new (), - mm_serial_parser_v1_destroy); + mm_serial_parser_v1_e1_parse, + mm_serial_parser_v1_e1_new (), + mm_serial_parser_v1_e1_destroy); if (ptype == MM_PORT_TYPE_PRIMARY) { priv->primary = MM_SERIAL_PORT (port);