Skip to content

Let rtlsdr_set_tuner_if_gain return -1 upon error.#21

Open
lcl7 wants to merge 1 commit into
steve-m:masterfrom
lcl7:rtlsdr_set_tuner_if_gain-error-return
Open

Let rtlsdr_set_tuner_if_gain return -1 upon error.#21
lcl7 wants to merge 1 commit into
steve-m:masterfrom
lcl7:rtlsdr_set_tuner_if_gain-error-return

Conversation

@lcl7

@lcl7 lcl7 commented May 10, 2015

Copy link
Copy Markdown
Contributor

Let rtlsdr_set_tuner_if_gain() return -1 when it cannot be set.
That was the case when there is no device, no tuner or when the
value was invalid, but it returned 0 when the there was no way
to set if-gain for the used receiver.
Now it returns also -1 when there is no set-function for if_gain.

Without this patch, a user interface is not aware that the
specified if_gain has not been set when using a tuner without
a set_if_gain() function.

Let rtlsdr_set_tuner_if_gain() return -1 when it cannot be set.
That was the case when there is no device, no tuner or when the
value was invalid, but it returned 0 when the there was no way
to set if-gain in the receiver.
Now it returns also -1 when there is no set-function for if_gain.
@Romeo-Golf

Copy link
Copy Markdown

This seems useful :)

paulyc pushed a commit to paulyc/librtlsdr that referenced this pull request May 31, 2019
*	So @f4exb was right to include the rtl_tcp.h in CMakeLists install. If anyone is making a C program that communicates with rtl_tcp, it will probably use the enums. (See PR steve-m#22 and issue steve-m#21)
*	Added rtl_tcp.h to CMakeLists install script and moved rtl_tcp.h include to rtl_tcp.c file
*	Added Eclipse gitignore (for anyone that uses eclipse to compile)
*	Closes Issue steve-m#21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants