Replies: 2 comments
-
There was a long discussion in #1490. 🤷 I'm not into that, so I'll retreat here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@felixdivo @mikisama
python-can/can/interfaces/slcan.py
Line 164 in af52622
Is there a specific reason for size=1? Before size=1, in git blame, it was not set and the default was still 1.
As an alternative, that also works, it is possible to read the bytes that are waiting to be read in one go, and hopefully delay less:
new_bytes = self.serialPortOrig.read(size=self.serialPortOrig.in_waiting)
I am in the process of measuring the changed delays.
Beta Was this translation helpful? Give feedback.
All reactions