Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let rtlsdr_set_tuner_if_gain return -1 upon error. #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lcl7
Copy link
Contributor

@lcl7 lcl7 commented May 10, 2015

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

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