From: Bert Vermeulen Date: Wed, 25 Jan 2012 00:50:46 +0000 (+0100) Subject: cli: use new PD instance find function X-Git-Tag: sigrok-cli-0.3.0~56 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c9ec7f07fd28f70874e7ec15566442021333ec8d;p=sigrok-cli.git cli: use new PD instance find function --- diff --git a/sigrok-cli.c b/sigrok-cli.c index ae6a637..271cf0e 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -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; }