-
Notifications
You must be signed in to change notification settings - Fork 213
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
Fix coding of the "Margin" field of the "DevStatusAns" command payload #131
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you again for finding and reporting this! Let me know how best to collaborate on this. I can potentially send you a patch set to test, or you can make my changes from the comment.
This reverts commit cc0d691.
Comments in-line below.
This rounds the value. If LMIC.snr is 0 or 1, (LMIC.snr4)+2 is 2 or 3; if 2 or 3, then (LMICsnr*4)+2 is 4 or 5. Thus LMIC.snr values map as follows:
and so forth.
Nope, I screwed up. Should have written
Yeah, I never check the older specs, so I just referenced what I have. Use your judgment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still need the operative change at around line 1267 (use the devAnsValue in the response).
Thank you very much for your extensive commments and explanations! |
Thanks for finding and fixing this! Changes look good to me, will merge now. |
The value of 31 is taken from this line of the lorawan software.
Fixes #130