Skip to content

Commit 01a16eb

Browse files
committed
Change backend policy to warning when error is not known
1 parent 14f0214 commit 01a16eb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AdalmPluto"
22
uuid = "af34ca7c-e544-47d5-a6fe-72495f08728e"
33
authors = ["Pierre Dénès <pdenes@enssat.fr> and Robin Gerzaguet <robin.gerzaguet@irisa.fr>"]
4-
version = "0.3.1"
4+
version = "0.3.2"
55

66
[deps]
77
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

src/AdalmPluto.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ function scan(backend::String, deviceIndex=-1, doPrint=true)
236236
if ret < 0
237237
C_iio_context_info_list_free(info[]);
238238
C_iio_scan_context_destroy(scan_context);
239-
error("iio_scan_context_get_info_list failed with error $ret :\n", C_iio_strerror(ret));
239+
#error("iio_scan_context_get_info_list failed with error $ret :\n", C_iio_strerror(ret));
240+
@warn "[$backend Backend] iio_scan_context_get_info_list failed with error $(C_iio_strerror(ret))"
240241
uri = [""]
241242
elseif ret == 0
242243
(doPrint) && (@info "No $backend device found");

0 commit comments

Comments
 (0)