Skip to content

Commit

Permalink
don't reset err to nil for returns, shorten libUsbError to libError, …
Browse files Browse the repository at this point in the history
…minor refactoring and better consistency for error handling, comments
  • Loading branch information
jpoirier committed Nov 14, 2015
1 parent 95eadea commit eca7e33
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 85 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ All functions in librtlsdr are accessible from the gortlsdr package:
go get -u github.com/jpoirier/gortlsdr

## Example
See the rtlsdr_eample.go file:
See the eample.go file:

go run rtlsdr_example.go
go run example.go

## Windows
If you don't want to build the librtlsdr and libusb dependencies from source you can use the librtlsdr pre-built package,
Expand Down Expand Up @@ -62,7 +62,7 @@ Building gortlsdr on Windows:
go install github.com/jpoirier/gortlsdr

* Insert the DVB-T/DAB/FM dongle into a USB port, open a shell window in go-pkgs\src\github.com\jpoirier\gortlsdr and run
the example program: go run rtlsdr_example.go. Note, the pre-built rtl-sdr package contains several test executables as well.
the example program: go run example.go. Note, the pre-built rtl-sdr package contains several test executables as well.


# Credit
Expand All @@ -71,8 +71,5 @@ Building gortlsdr on Windows:
* [Antti Palosaari] (http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/44461/focus=44461) for sharing!

# Todo
* create a plotting example using [plotinum](https://code.google.com/p/plotinum)
* create a Go port of librtlsdr's rtl_fm.c
* remove the rtl-sdr dependency using [gousb](https://github.com/kylelemons/gousb) and [go-dsp](https://github.com/mjibson/go-dsp)

-joe
File renamed without changes.
Loading

0 comments on commit eca7e33

Please sign in to comment.