]> sigrok.org Git - sigrok-cli.git/commitdiff
cli: use new PD instance find function
authorBert Vermeulen <redacted>
Wed, 25 Jan 2012 00:50:46 +0000 (01:50 +0100)
committerBert Vermeulen <redacted>
Wed, 25 Jan 2012 00:50:46 +0000 (01:50 +0100)
sigrok-cli.c

index ae6a63771333467098d683096bbda556d99391f3..271cf0e545ec2301b8f7be6e6dc478e398e3bf42 100644 (file)
@@ -1027,12 +1027,12 @@ int main(int argc, char **argv)
                        return 1;
                }
 
-               if (!(di_from = srd_instance_find(pds[0]))) {
+               if (!(di_from = srd_instance_find_by_id(pds[0]))) {
                        printf("Cannot stack protocol decoder '%s': instance not found.\n", pds[0]);
                        return 1;
                }
                for (i = 1; pds[i]; i++) {
-                       if (!(di_to = srd_instance_find(pds[i]))) {
+                       if (!(di_to = srd_instance_find_by_id(pds[i]))) {
                                printf("Cannot stack protocol decoder '%s': instance not found.\n", pds[i]);
                                return 1;
                        }