-
Notifications
You must be signed in to change notification settings - Fork 3
Drivers/payload uart merge #70
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
devYaoYH
left a comment
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.
Run linter using ./format_all.sh from repo root or src/.
|
Ran the ./format_all.sh, but when I ran git status it looks like there's nothing to really push. Not sure I'm understanding how to use the linter right |
|
Looking into the logs for the failing lint check: So those lines above have formatting that doesn't conform to our style guides. Also make sure to pull this branch again (since I did the merge using the visual editor online - this commit won't be on your local). |
|
Also please fix the failing builds for PICO-type platform builds. You should be able to mock out these PICUBED pins: You can define these for non-PICO builds only with: #ifndef PICO
#define SAMWISE_UART_RX // as per normal pinout on PICUBED
#else
#define SAMWISE_UART_RX // as per mocked pins on PICO (pick something not currently in use)
#endifA successful build check like here should pass for all our configured platform profiles. |
devYaoYH
left a comment
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.
PTAL at the comments, some are forward-looking (and you don't have to address them in this PR), but primarily clean up some naming + (what I think might've been) spurious changes to the radio_task.
src/main.c
Outdated
| /* | ||
| * Initialize everything. | ||
| */ | ||
| sleep_ms(5000); |
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.
this looks new... we probably don't need the explicit sleep here.
devYaoYH
left a comment
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.
Just a couple more minor edits necessary:
- remove extra 5s sleep in main.c
- add
rfm9x_transmit(&slate->radio);in radio_task dispatch call when tx queue is not empty (sets radio to transmission mode)
devYaoYH
left a comment
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.
Thanks for the changes! LGTM
Payload integration with main