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

the sleep period on read #107

Open
wants to merge 1 commit into
base: python2.6
Choose a base branch
from

Conversation

berkaydeniz
Copy link

the hard coded sleep in SerialUsb read function is too long for time sensitive applications. Reducing it to a significantly smaller value. Before this change I had unexplained 10 mili second delays in my communications, which is resolved by the change.

the hard coded sleep in SerialUsb read function is too long for time sensitive applications. Reducing it to a significantly smaller value.
@eblot
Copy link
Owner

eblot commented Sep 25, 2018

Wow, python2.6 version, quite old :-)

The issue with reducing timeout is that is tends to overload the CPU.
Which timeout value did you use for the serial port itself?

Maybe this delay should be indexed on the serial port timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants