-
Notifications
You must be signed in to change notification settings - Fork 3k
Lora: Split add_mac_command() into separate methods #6741
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
Conversation
In order to have smaller and better testable methods, instead of having a big switch-case -style add_mac_command(), each MAC command is now separated to an own method.
@hasnainvirk @AnttiKauppila @kjbracey-arm please review. |
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.
A minor comment. Looks good.
<< 8; | ||
rxParamSetupReq.frequency |= (uint32_t) payload[mac_index++] | ||
<< 16; | ||
rxParamSetupReq.frequency |= (uint32_t) payload[mac_index++] << 8; |
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.
style
/morph build |
Build : SUCCESSBuild number : 1862 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1510 |
Test : SUCCESSBuild number : 1674 |
Description
In order to have smaller and better testable methods, instead of having a big
switch-case -style add_mac_command(), each MAC command is now separated to an
own method.
This has been tested with our internal Lora tests.
Pull request type