Skip to content

Commit e7525cf

Browse files
committed
Bug fixes for SDR detection
1 parent a6061f3 commit e7525cf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

installer/utils/detect-sdrs.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
# Array of SDR USB VID:PID pairs
77
# Add additional pairs to this list for any supported SDR
88
SDR_DEVICES=(
9-
"0x0bda:0x2832" # RealTek 2832
9+
"0x0bda:0x2832" # RealTek 2832
10+
"0x0bda:0x2838" # RTL-SDR.com RTL2838U
1011
)
1112

1213
function detectSDRs() {
1314
local -a srdinfo
1415

15-
for sdrdev in "${SDR_DEVICES[*]}"; do
16+
for sdrdev in "${SDR_DEVICES[@]}"; do
1617
IFS=':' read -r -a sdr <<< "$sdrdev"
1718
local devlist=$(lsusb -d ${sdr[0]}:${sdr[1]})
1819

@@ -51,5 +52,3 @@ function detectSDRs() {
5152
sdrjson=$(jq -n '.detected |= [inputs]' <<< "${sdrinfo[@]}")
5253
echo "$sdrjson"
5354
}
54-
55-
getSDRs

0 commit comments

Comments
 (0)