]> sigrok.org Git - sigrok-cli.git/commitdiff
new srd_logic type implementation for PDs to iterate over.
authorBert Vermeulen <redacted>
Thu, 5 Jan 2012 02:31:36 +0000 (03:31 +0100)
committerBert Vermeulen <redacted>
Thu, 5 Jan 2012 02:39:02 +0000 (03:39 +0100)
sigrok-cli.c

index 337d878bdc1cc4c438ce23d617ee3f12f8b8e863..2856bc9f6afe7f5c51c848693a00fdd0a3615983 100644 (file)
@@ -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");