From: Bert Vermeulen Date: Thu, 5 Jan 2012 02:31:36 +0000 (+0100) Subject: new srd_logic type implementation for PDs to iterate over. X-Git-Tag: sigrok-cli-0.3.0~78 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ee38f0beb0bca30a65b8fde65aef23ba17927adb;p=sigrok-cli.git new srd_logic type implementation for PDs to iterate over. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index 337d878..2856bc9 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -258,7 +258,7 @@ static void show_device_detail(void) static void datafeed_in(struct sr_device *device, struct sr_datafeed_packet *packet) { static struct sr_output *o = NULL; - static int probelist[65] = { 0 }; + static int probelist[SR_MAX_NUM_PROBES] = { 0 }; static uint64_t received_samples = 0; static int unitsize = 0; static int triggered = 0; @@ -322,8 +322,8 @@ static void datafeed_in(struct sr_device *device, struct sr_datafeed_packet *pac } } if (opt_pds) - srd_session_start(device->plugin->name, unitsize, - time(NULL), header->samplerate); + srd_session_start(num_enabled_probes, unitsize, + header->samplerate); break; case SR_DF_END: g_message("cli: Received SR_DF_END");