Closed thanhlev closed 10 months ago
Hi @thanhlev, thank you for your PR! Could you provide more detail on the motivation behind this change?
The original reason for setting the read interval to 0.05 seconds was to prevent the read thread defined here from being executed too frequently. If this thread is executed too often, it may not have enough time to execute functions on your custom threads, if you're using multi-threading in you test scripts.
Hi @hfudev , Thanks for your reply. I ran into an issue with baud rate 3M (missed data and NULL character on received data unexpectedly ), with baud 200K - got NULL character on received data unexpectedly.
The change will only target high baud rate testing
@thanhlev Could you help post the error message here and provide a minimal reproducible code snippet? Let's see if there's another way to fix it.
The current fix by your PR would cause problems when used together with multiple threads.
Hi @thanhlev, thank you for your PR! Could you provide more detail on the motivation behind this change?
The original reason for setting the read interval to 0.05 seconds was to prevent the read thread defined here from being executed too frequently. If this thread is executed too often, it may not have enough time to execute functions on your custom threads, if you're using multi-threading in you test scripts.