Hello. I observe that flush() does nothing in windows even though the docs say it waits for all characters to be sent. Shouldn't it rather do:
while outWaiting(): pass
Or am I missing something?
yes that would be one way to implement it, though i'd add a time.sleep(0.1) to avoid high CPU load for just waiting.
a nicer solution would be to use WaitCommEvent with the mask EV_TXEMPTY. though i do not feel like adding so much code (overlapped I/O, sigh) for the flush function that is probably barely used.
first proposal implemented for release 2.7
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.