From 6c7188e6165222c565b1c5721715bd528896e617 Mon Sep 17 00:00:00 2001 From: Joseph Poirier Date: Sat, 21 Nov 2015 22:48:39 -0600 Subject: [PATCH] fix for correct param name --- rtlsdr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtlsdr.go b/rtlsdr.go index f5fa0a3..f2123f1 100644 --- a/rtlsdr.go +++ b/rtlsdr.go @@ -34,7 +34,7 @@ static inline rtlsdr_read_async_cb_t get_go_cb() { import "C" // Current version. -var PackageVersion = "v2.9.8" +var PackageVersion = "v2.9.9" // ReadAsyncCbT defines a user callback function type. type ReadAsyncCbT func([]byte) @@ -321,7 +321,7 @@ func (dev *Context) GetCenterFreq() (freqHz int) { // SetFreqCorrection sets the frequency correction. func (dev *Context) SetFreqCorrection(ppm int) (err error) { i := int(C.rtlsdr_set_freq_correction((*C.rtlsdr_dev_t)(dev), - C.int(freqHz))) + C.int(ppm))) // error code -2 means the requested PPM is the same as // the current PPM (dev->corr == PPM) if i == -2 {