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

RP2040: Fix USB log corruption #199

Merged
merged 1 commit into from
May 5, 2023
Merged

RP2040: Fix USB log corruption #199

merged 1 commit into from
May 5, 2023

Conversation

PetteriAimonen
Copy link
Collaborator

USB logging did not handle log buffer overruns correctly, resulting in log corruption after the serial port was opened. Usually this fixed itself quickly enough, but not always.

Fixed by adding a separate parameter to log_get_buffer() to indicate number of available bytes in log buffer.

Also improves initiator mode USB log performance by calling platform_poll() during retry waits.

USB logging did not handle log buffer overruns correctly, resulting
in log corruption after the serial port was opened. Usually this
fixed itself quickly enough, but not always.

Fixed by adding a separate parameter to log_get_buffer() to indicate
number of available bytes in log buffer.

Also improves initiator mode USB log performance by calling
platform_poll() during retry waits.
@aperezbios aperezbios merged commit 6be2b6c into main May 5, 2023
@aperezbios aperezbios deleted the dev_usb_logging_fixes branch May 5, 2023 14:44
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