Skip to content

Refactor serial_write #28

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

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Conversation

lonesometraveler
Copy link
Contributor

This fixes #27.

Since the return type of the function serial_write has been changed to Result, we must use it when calling the function. Please review carefully line 154 ~ 161. Unless I have misunderstood your intention, we do not need to use std::str::from_utf8(output). Instead, we can directly pass the cmd variable, which is a String.

@hacknus
Copy link
Owner

hacknus commented Feb 21, 2023

Yes, you are correct. This was an absolutely unnecessary operation. Thanks!

@hacknus hacknus merged commit 52a5e7e into hacknus:main Feb 21, 2023
@lonesometraveler lonesometraveler deleted the refactor_serial_2 branch February 28, 2023 11:56
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.

Question about serial_write and acknowledgment
2 participants