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

Airdrop Connection Test #155

Merged
merged 7 commits into from
Apr 18, 2024
Merged

Airdrop Connection Test #155

merged 7 commits into from
Apr 18, 2024

Conversation

Tyler-Lentz
Copy link
Contributor

@Tyler-Lentz Tyler-Lentz commented Apr 17, 2024

I tested basic airdrop connection with Cody earlier in the week. This PR fixes two big bugs

Protocol Inconsistency

This PR fixes a bug where the airdrop boards and OBC could get out of sync if an initial ACK_MODE packet was dropped, so the board would miss the initial OBC ack and keep sending SET_MODE packets until the end of time.

Memory access error on malformed packets

Also, this fixes a potential memory access error / seg fault by bounds checking the data of a heartbeat packet to make sure that it is within 1-5 before using that value to index into an array.

Copy link
Member

@atar13 atar13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice to see this getting integrated with the airdrop hardware.

@Tyler-Lentz Tyler-Lentz merged commit 23b193c into main Apr 18, 2024
0 of 2 checks passed
@Tyler-Lentz Tyler-Lentz deleted the feat/airdrop-connection-test branch April 18, 2024 22:50
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

Successfully merging this pull request may close these issues.

2 participants