crayzeewulf / libserial

Serial Port Programming in C++
BSD 3-Clause "New" or "Revised" License
406 stars 142 forks source link

DrainWriteBuffer() Indefinitely blocks program on Ubuntu 22.04.3. #188

Closed elegresl closed 8 months ago

elegresl commented 8 months ago

Most of the time when I execute my program to write 10 bytes to a motor driver, the program is blocked while waiting for the write buffer to be cleared.

Sometimes I am able to get through all 10 bytes and everything is fine.

Has anyone heard of this issue? I suppose it could be OS related rather than a library problem.

elegresl commented 8 months ago

This issue was resolved by inserting a delay after opening the port.