From 1e61e00df926272ef350bd97703994ca8a7b0169 Mon Sep 17 00:00:00 2001 From: Joseph Poirier Date: Sat, 21 Nov 2015 22:44:26 -0600 Subject: [PATCH] correct param name --- rtlsdr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtlsdr.go b/rtlsdr.go index 950d490..f5fa0a3 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.7" +var PackageVersion = "v2.9.8" // ReadAsyncCbT defines a user callback function type. type ReadAsyncCbT func([]byte) @@ -319,7 +319,7 @@ func (dev *Context) GetCenterFreq() (freqHz int) { } // SetFreqCorrection sets the frequency correction. -func (dev *Context) SetFreqCorrection(freqHz int) (err error) { +func (dev *Context) SetFreqCorrection(ppm int) (err error) { i := int(C.rtlsdr_set_freq_correction((*C.rtlsdr_dev_t)(dev), C.int(freqHz))) // error code -2 means the requested PPM is the same as