From 8c0f1a587bf03c22ed22c05bd2d15383beb6625f Mon Sep 17 00:00:00 2001 From: Ryan Owens <11846355+rwowens@users.noreply.github.com> Date: Sun, 26 Feb 2023 17:09:58 -0500 Subject: [PATCH] Replace device index literal with variable Although the -d parameter is accepted, it doesn't seem to have any effect. Guessing that the issue is the "Open" call is hard coded to 0. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a864d0c..2b141f6 100644 --- a/main.go +++ b/main.go @@ -199,7 +199,7 @@ func main() { sdrIndex = indexreturn } - dev, err := rtlsdr.Open(0) + dev, err := rtlsdr.Open(sdrIndex) if err != nil { log.Fatal(err) }