summaryrefslogtreecommitdiff
path: root/Radio/HW/AirSpy/AirSpy.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Radio/HW/AirSpy/AirSpy.swift')
-rw-r--r--Radio/HW/AirSpy/AirSpy.swift3
1 files changed, 3 insertions, 0 deletions
diff --git a/Radio/HW/AirSpy/AirSpy.swift b/Radio/HW/AirSpy/AirSpy.swift
index 25f5b0b..61623c6 100644
--- a/Radio/HW/AirSpy/AirSpy.swift
+++ b/Radio/HW/AirSpy/AirSpy.swift
@@ -33,6 +33,9 @@ class AirSpy {
}
func getSampleRates() -> [UInt32] {
+
+ var ret: Int32 = 0
+
if sample_rates.count == 0 {
let nscount: UnsafeMutablePointer<UInt32> = .allocate(capacity: 1)