From 703ab2590b031b028199c872e2525936a9d7088f Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 13 Mar 2012 14:58:42 +0100 Subject: [PATCH] port-probe: probing may just require vendor or product probing If we already had probed, e.g. AT capabilities, and a next plugin requires Vendor AT probing, the task will only show that VENDOR_AT is requested. --- src/mm-port-probe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index 6fbc25ca..f14bcd6d 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -814,7 +814,9 @@ mm_port_probe_run (MMPortProbe *self, g_free (probe_list_str); /* If any AT probing is needed, start by opening as AT port */ - if (task->flags & MM_PORT_PROBE_AT) { + if (task->flags & MM_PORT_PROBE_AT || + task->flags & MM_PORT_PROBE_AT_VENDOR || + task->flags & MM_PORT_PROBE_AT_PRODUCT) { task->at_probing_cancellable = g_cancellable_new (); task->source_id = g_idle_add ((GSourceFunc)serial_open_at, self); return;