Skip to content

AssertionError for tx_power should be more verbose #25

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

Closed
brentru opened this issue May 5, 2019 · 1 comment
Closed

AssertionError for tx_power should be more verbose #25

brentru opened this issue May 5, 2019 · 1 comment

Comments

@brentru
Copy link
Member

brentru commented May 5, 2019

Currently prints:
File "adafruit_rfm9x.py", line 529, in tx_power AssertionError:

Should be AssertionError: Power range must be from 5 to 23dB
https://github.com/adafruit/Adafruit_CircuitPython_RFM9x/blob/master/adafruit_rfm9x.py#L529

@brentru
Copy link
Member Author

brentru commented May 5, 2019

Also the AssertionError for frequency_mhz, should return an error describing a range within 240Mhz to 960MHz

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

No branches or pull requests

1 participant