Skip to content

Commit

Permalink
Change backend policy to warning when error is not known
Browse files Browse the repository at this point in the history
  • Loading branch information
RGerzaguet committed Jan 5, 2023
1 parent 14f0214 commit 01a16eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "AdalmPluto"
uuid = "af34ca7c-e544-47d5-a6fe-72495f08728e"
authors = ["Pierre Dénès <[email protected]> and Robin Gerzaguet <[email protected]>"]
version = "0.3.1"
version = "0.3.2"

[deps]
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Expand Down
3 changes: 2 additions & 1 deletion src/AdalmPluto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ function scan(backend::String, deviceIndex=-1, doPrint=true)
if ret < 0
C_iio_context_info_list_free(info[]);
C_iio_scan_context_destroy(scan_context);
error("iio_scan_context_get_info_list failed with error $ret :\n", C_iio_strerror(ret));
#error("iio_scan_context_get_info_list failed with error $ret :\n", C_iio_strerror(ret));
@warn "[$backend Backend] iio_scan_context_get_info_list failed with error $(C_iio_strerror(ret))"
uri = [""]
elseif ret == 0
(doPrint) && (@info "No $backend device found");
Expand Down

2 comments on commit 01a16eb

@RGerzaguet
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/75148

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.2 -m "<description of version>" 01a16ebfcc76bdc0ab07634c44b491412ef6adf2
git push origin v0.3.2

Please sign in to comment.