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

Add support for parity even #4

Closed
Salabasti opened this issue May 7, 2019 · 3 comments
Closed

Add support for parity even #4

Salabasti opened this issue May 7, 2019 · 3 comments

Comments

@Salabasti
Copy link

Salabasti commented May 7, 2019

In usb_serial version 0.1.1 there seems to be no constant for setting the parity of a UsbPort object to 'even'.

I explored the underlying java library and noticed that this option is supported there. (link) I tried using '2' as a constant for setting the parity in UsbPort.setPortParameters() with no success. EDIT: Passing 2 in UsbPort.setParameters(...) worked for me.

Will the option to set the parity to 'even' be available in the near future or is there any workaround for that?

@altera2015
Copy link
Owner

I've added the 'Even' constant in 0.2.0

@Salabasti
Copy link
Author

Using an Integer value of 2 seems also to work for setting the parity argument to 'even'.

@Salabasti
Copy link
Author

I've added the 'Even' constant in 0.2.0

Thank you very much!

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

No branches or pull requests

2 participants