Skip to content

Commit

Permalink
Merge pull request #470 from analogdevicesinc/rgetz-fix-iio-info-scan…
Browse files Browse the repository at this point in the history
…ning

iio_info: fix scanning
  • Loading branch information
rgetz authored Apr 28, 2020
2 parents 7ca7557 + 275b65f commit c5d6523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/iio_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct iio_context * autodetect_context(bool rtn, bool gen_code, const char * na
printf("No IIO context found.\n");
goto err_free_info_list;
}
if (!rtn && ret == 1) {
if (rtn && ret == 1) {
printf("Using auto-detected IIO context at URI \"%s\"\n",
iio_context_info_get_uri(info[0]));
ctx = iio_create_context_from_uri(iio_context_info_get_uri(info[0]));
Expand Down

0 comments on commit c5d6523

Please sign in to comment.