aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-13 14:58:42 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-16 14:53:25 +0100
commit703ab2590b031b028199c872e2525936a9d7088f (patch)
tree450df8d9ef46f502ee9420968914f192a93b82f0
parent56e7b15f5c2bb8f88dc638766774db1f15a5b4d0 (diff)
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.
-rw-r--r--src/mm-port-probe.c4
1 files changed, 3 insertions, 1 deletions
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;