Skip to content

Use selected RTL-SDR device index#6

Open
cdavis289 wants to merge 1 commit into
lheijst:masterfrom
cdavis289:master
Open

Use selected RTL-SDR device index#6
cdavis289 wants to merge 1 commit into
lheijst:masterfrom
cdavis289:master

Conversation

@cdavis289
Copy link
Copy Markdown

The -d flag is parsed into sdrIndex, supporting either a device serial number or device index, but the program still opened RTL-SDR device 0 unconditionally.

This caused the wrong RTL-SDR dongle to be claimed on systems with multiple RTL-SDR devices attached.

This change uses the parsed sdrIndex when opening the device.

The -d flag was parsed into sdrIndex, but rtlsdr.Open(0) always opened device 0. This caused the wrong RTL-SDR to be claimed when multiple dongles are attached.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant