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

Explicit use of bytes in serial communications. #552

Closed
wants to merge 1 commit into from
Closed

Explicit use of bytes in serial communications. #552

wants to merge 1 commit into from

Conversation

rsprouse
Copy link
Contributor

Update srbox plugin to explicitly use the bytes type when sending data or making comparison to received data, as is required for serial communications. Previously, the srbox plugin failed under Python 3 because the str type was being used without being encoded as bytes. The changes should not break compatibility with Python 2, where bytes == str.

Update srbox plugin to explicitly use the bytes type when sending data or making comparison to received data, as is required for serial communications. Previously, the srbox plugin failed under Python 3 because the str type was being used without being encoded as bytes. The changes should not break compatibility with Python 2, where bytes == str.
@smathot
Copy link
Collaborator

smathot commented Jul 28, 2017

Thanks! I haven't tested this, because I don't have an SRBox with me right now, but it seems like a straightforward and solid fix.

Merged into james.

@smathot smathot closed this Jul 28, 2017
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