diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-05-10 11:42:04 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2011-06-06 17:20:17 +0200 |
commit | a2ba5c5e99b4200281fd1a57177676acd26a2cad (patch) | |
tree | 1a9e032413383ca38578eca51d79d4f12075dc3a | |
parent | 4cb039e34a78a868a84a4e2299e6e0c1ca638cc9 (diff) |
cinterion: enable reprobing on ports without cached capabilities
-rw-r--r-- | plugins/mm-plugin-cinterion.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mm-plugin-cinterion.c b/plugins/mm-plugin-cinterion.c index 60e784b0..9992350f 100644 --- a/plugins/mm-plugin-cinterion.c +++ b/plugins/mm-plugin-cinterion.c @@ -126,8 +126,12 @@ supports_port (MMPluginBase *base, /* First thing to check in this plugin is if we got capabilities already. * This is because we have a later check of the probed vendor, which is - * taken also during port probing. */ - if (!mm_plugin_base_get_cached_port_capabilities (base, port, &cached)) { + * taken also during port probing. + * Note that we also relaunch a port probe if we got a cached value but no + * capabilities set (used when trying to detect RS232 modems during + * re-scans). */ + if (!mm_plugin_base_get_cached_port_capabilities (base, port, &cached) || + !cached) { /* Kick off a probe */ if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; |