From f4f45ae08ba05baac0724c540d16b20dded1dc7c Mon Sep 17 00:00:00 2001 From: Joseph Poirier Date: Sat, 28 Nov 2015 21:02:30 -0600 Subject: [PATCH] fix copy/paste error --- rtlsdr.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtlsdr.go b/rtlsdr.go index 603e2df..00252ab 100644 --- a/rtlsdr.go +++ b/rtlsdr.go @@ -126,8 +126,8 @@ const ( libErrorInterrupted libErrorNoMem libErrorNotSupported - linErrorInvalidParameter = EINVAL - libErrorOther = LIBUSB_ERROR_OTHER + linErrorInvalidParam = EINVAL + libErrorOther = LIBUSB_ERROR_OTHER ) // Sampling modes. @@ -152,7 +152,7 @@ var libErrMap = map[int]error{ libErrorInterrupted: errors.New("system call interrupted (perhaps due to signal)"), libErrorNoMem: errors.New("insufficient memory"), libErrorNotSupported: errors.New("operation not supported or unimplemented on this platform"), - libErrorOther: errors.New("invalid parameter"), + linErrorInvalidParam: errors.New("invalid parameter"), libErrorOther: errors.New("unknown error"), }