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

Handle illogical LOG_REQUEST_LIST messages more gracefully #21784

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

harrisonmg
Copy link
Contributor

Solved Problem

When you send a LOG_REQUEST_LIST message with the start log id > the end log id, PX4 responds with LOG_ENTRY messages for every single log ID up until, I assume, _next_entry overflows and finally == _last_entry at some point.

Solution

This change results in just a single LOG_ENTRY being sent for the start log id if end > start. I think this is a little better than sending up to u32 max value LOG_ENTRY messages.

Test coverage

I really only tested this manually, but happy to perform other testing if necessary.

@harrisonmg harrisonmg changed the title handle _next_entry Handle illogical LOG_REQUEST_LIST messages more gracefully Jun 30, 2023
@bkueng bkueng merged commit 018ec97 into PX4:main Jul 3, 2023
81 of 84 checks passed
antbre pushed a commit to BioMorphic-Intelligence-Lab/PX4-Autopilot that referenced this pull request Sep 14, 2023
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.

None yet

2 participants