Skip to content

Commit

Permalink
Update scaning to support multiple Pluto devices
Browse files Browse the repository at this point in the history
  • Loading branch information
RGerzaguet committed Jan 5, 2023
1 parent b9d7b46 commit 9e02c42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "AbstractSDRs"
uuid = "0bdde9fc-719a-4dc7-8589-49ca6634fa6b"
authors = ["Robin Gerzaguet <[email protected]>"]
version = "0.4"
version = "0.4.1"

[deps]
AdalmPluto = "af34ca7c-e544-47d5-a6fe-72495f08728e"
Expand Down
6 changes: 4 additions & 2 deletions src/Scan.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ function scan(backend::Union{Nothing,Vector{Symbol}}=nothing;key...)
end
for b in backend
# --- Call scanner
e = AdalmPluto.scan(b)
eV = AdalmPluto.scan(b)
# --- Push in Vector of string
# AdalmPluto answer "" and this corresponds to nothing interessting. We push in the vector only if what we had was not empty
(!isempty(e)) && (push!(allStr,e))
for e in eV
(!isempty(e)) && (push!(allStr,e))
end
end
elseif b == :radiosim
# ----------------------------------------------------
Expand Down

2 comments on commit 9e02c42

@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/75147

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.4.1 -m "<description of version>" 9e02c42478cb61f450566936e72c5d224a5d4435
git push origin v0.4.1

Please sign in to comment.