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

compiler warning #111

Open
angrest opened this issue Oct 7, 2022 · 1 comment
Open

compiler warning #111

angrest opened this issue Oct 7, 2022 · 1 comment

Comments

@angrest
Copy link

angrest commented Oct 7, 2022

First of all, thanks for the excellent work!

When compiling with highest warn level, the compiler spits out the message

Arduino/libraries/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:445:5: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
 int a;
     ^

And indeed, if the frequency is set to be outside the specified limits (e.g. 377.9 MHz), a will not be set in the code and thus, something weird be assigned to the PA_TABLE and subsequently written to the chip.
As I am not sure how the chip will react in the first place on a frequency value outside the bands it is designed for, I do not know how relevant this problem actually is.

@Noltari
Copy link

Noltari commented Jan 15, 2024

This is fixed by #132

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

2 participants