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.
This commit is contained in:
Aleksander Morgado
2012-03-16 14:53:25 +01:00
parent 56e7b15f5c
commit 703ab2590b
+3 -1
View File
@@ -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;