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

Added send_raw() function to allow sending arbitrary binary data using the serial port. #21

Merged
merged 3 commits into from Jan 8, 2022

Conversation

olivercalder
Copy link
Contributor

See discussion here: #19

The send() function has a special case for 0x08 and 0x7F in order to allow terminals to correctly display ASCII backspace and delete characters. However, inserting the additional 0x08 0x20 bytes can mangle binary data being sent using the serial port. Thus, this PR adds a new send_raw() function which allows sending bytes unchanged. By using a new function, this should not break backwards compatibility with previous versions of the crate.

Empty commit to trigger a CI build again.
Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

There seem to be some CI problems. I try to fix those, then I'll merge this.

@phil-opp phil-opp merged commit 7beb08b into rust-osdev:master Jan 8, 2022
phil-opp added a commit that referenced this pull request Jan 8, 2022
@phil-opp
Copy link
Member

phil-opp commented Jan 8, 2022

Published as v0.2.16

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