Skip to content

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.

2 participants