We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
uint8_t channel_resolver_get_frequency(uint8_t channel) { // ... freq = channel + (channel < 11 ? 2 : 3) * 2; // Spec Vol. 6, Part B, 1.4.1 return freq; }
I think this is missing braces. The function returns different results from the referenced table in 6.B.1.4.1.
For example: channel 36 should be 2478MHz. The above equation returns 36 + 3*2 = 42 (which becomes 2042MHz not 2478MHz in the radio peripheral).
I suspect the issue is simply the slight thinko of a missing pair of parenthises:
freq = (channel + (channel < 11 ? 2 : 3)) * 2; // Spec Vol. 6, Part B, 1.4.1
Some test points:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think this is missing braces. The function returns different results from the referenced table in 6.B.1.4.1.
For example: channel 36 should be 2478MHz. The above equation returns 36 + 3*2 = 42 (which becomes 2042MHz not 2478MHz in the radio peripheral).
I suspect the issue is simply the slight thinko of a missing pair of parenthises:
Some test points:
The text was updated successfully, but these errors were encountered: