value = g_hash_table_lookup(hash, key);
hwopt->value = g_strdup(value);
opts = g_slist_append(opts, hwopt);
- break;
}
g_list_free(keys);
g_free(triggerlist);
}
- if (sr_dev_config_set(sdi, SR_HWCAP_PROBECONFIG,
- (char *)sdi->probes) != SR_OK) {
- g_critical("Failed to configure probes.");
- sr_session_destroy();
- return;
- }
-
if (opt_continuous) {
if (!sr_driver_hwcap_exists(sdi->driver, SR_HWCAP_CONTINUOUS)) {
g_critical("This device does not support continuous sampling.");
show_version();
else if (opt_list_devs)
show_dev_list();
+ else if (opt_pds && opt_show)
+ show_pd_detail();
else if (opt_show)
show_dev_detail();
- else if (opt_pds)
- show_pd_detail();
else if (opt_input_file)
load_input_file();
else if (opt_samples || opt_time || opt_frames || opt_continuous)