summaryrefslogtreecommitdiff
path: root/Radio/Utils/TestRtlSdr
diff options
context:
space:
mode:
Diffstat (limited to 'Radio/Utils/TestRtlSdr')
-rw-r--r--Radio/Utils/TestRtlSdr/main.swift14
1 files changed, 10 insertions, 4 deletions
diff --git a/Radio/Utils/TestRtlSdr/main.swift b/Radio/Utils/TestRtlSdr/main.swift
index 7b10d05..39e1c06 100644
--- a/Radio/Utils/TestRtlSdr/main.swift
+++ b/Radio/Utils/TestRtlSdr/main.swift
@@ -8,8 +8,14 @@
import Foundation
import libr820
-let rtldev = R820Tuner()
-let count = rtldev.getDeviceCount()
-rtldev.open(index: 0)
-rtldev.close()
+
+let count = getDeviceCount()
+print("Found \(count) r820 devices")
+//rtldev.open(index: 0)
+//rtldev.close()
+for dev_idx in 0..<count {
+ let rtldev = R820Tuner()
+ rtldev.open(index: dev_idx)
+ rtldev.close()
+}