Skip to content

Commit

Permalink
-EINVAL not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoirier committed Dec 3, 2015
1 parent f4f45ae commit 32fee91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rtlsdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ const (
DefaultBufLength = (16 * 16384)
MinimalBufLength = 512
MaximalBufLength = (256 * 16384)
EINVAL = -22
LIBUSB_ERROR_OTHER = -99
)

Expand Down Expand Up @@ -360,7 +359,7 @@ func (dev *Context) GetTunerType() (tunerType string) {
// GetTunerGains returns a list of supported tuner gains.
// Values are in tenths of dB, e.g. 115 means 11.5 dB.
func (dev *Context) GetTunerGains() (gainsTenthsDb []int, err error) {
// count := int(C.rtlsdr_get_tuner_gains((*C.rtlsdr_dev_t)(c.dev), nil))
// count := int(C.rtlsdr_get_tuner_gains((*C.rtlsdr_dev_t)(c.dev), nil))
i := int(C.rtlsdr_get_tuner_gains((*C.rtlsdr_dev_t)(dev),
(*C.int)(unsafe.Pointer(nil))))
if i <= 0 {
Expand Down

0 comments on commit 32fee91

Please sign in to comment.