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

Fix/improve defmt parser around edge cases #496

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Nov 2, 2023

Fixed #495

This PR may still leave a single FF byte hanging in the air but it already assumes a valid UTF-8 stream for non-defmt data so I'm not sure this is an issue.

@bugadani bugadani marked this pull request as ready for review November 2, 2023 19:21
@bugadani bugadani changed the title Improve defmt parser around edge cases Fix/improve defmt parser around edge cases Nov 6, 2023
@bugadani
Copy link
Contributor Author

Can I ask for a review on this one, please? 🙃 @SergioGasquez

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

Still really far from being a defmt expert, but changes LGTM, I've tested them a bit, and it was working as expected, and they introduce tests, which is always good.

Sorry for the delayed review, I completely forgot.

@SergioGasquez
Copy link
Member

One small thing, it might be worth to mention such changes in the changelog

@SergioGasquez SergioGasquez merged commit d59bd37 into esp-rs:main Nov 10, 2023
19 checks passed
@bugadani bugadani deleted the serial branch November 10, 2023 15:33
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.

espflash only outputs bytes outside of defmt frames after it receives a defmt frame
2 participants