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

test_msg: remove redundant packet buffer initialization #31

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

tpwrules
Copy link
Contributor

@tpwrules tpwrules commented Aug 4, 2024

The <msg>_encode function always zeros the buffer up to <msg>_MAX_SIZE bytes so there is no need to do it beforehand.

Avoids encouraging poor habits.

Verified that the tests work reliably still.

The <msg>_encode function always zeros the buffer up to <msg>_MAX_SIZE
bytes so there is no need to do it beforehand.

Avoids encouraging poor habits.
@tridge tridge merged commit 3af4699 into dronecan:master Aug 10, 2024
3 checks passed
@tpwrules tpwrules deleted the pr/remove-buffer-clear branch August 10, 2024 03:38
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