X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=sigrok-cli.c;h=9ae646667381dba6e9981d00678bb7fbd63e44a5;hb=f83fbc57a5213cae17addf3dfc1cf96c3cf484b6;hp=1168745a6d9e01ab145b8e75145148d0267fbbad;hpb=4ed6cde9892cb3fb1578c9f637da39318b9c62e1;p=sigrok-cli.git diff --git a/sigrok-cli.c b/sigrok-cli.c index 1168745..9ae6466 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -1382,13 +1382,6 @@ static void run_session(void) 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."); @@ -1513,10 +1506,10 @@ int main(int argc, char **argv) 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)