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

Accept frequency in MHz or Hz. #54

Merged
merged 1 commit into from
Sep 5, 2017
Merged

Accept frequency in MHz or Hz. #54

merged 1 commit into from
Sep 5, 2017

Conversation

argilo
Copy link
Collaborator

@argilo argilo commented Sep 5, 2017

Fixes #50.

This change allows the frequency to be specified either in MHz or Hz. If the number is greater than 10,000 it will be interpreted as Hz, otherwise as MHz. I chose that threshold because the RTL-SDR can't tune that high (in MHz) or that low (in Hz).

If the frequency is entered as 107.1M (like rtl_fm) then the trailing M is simply ignored and it's interpreted as 107.1 MHz.

@argilo argilo requested a review from awesie September 5, 2017 22:22
@argilo
Copy link
Collaborator Author

argilo commented Sep 5, 2017

/cc @classicjazz since you requested this feature.

@awesie awesie merged commit 34224fb into experimental Sep 5, 2017
@argilo argilo deleted the freq-in-mhz branch September 5, 2017 23:56
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.

None yet

2 participants