Skip to content

simple_uart: use correct API for flushing#55

Merged
AndreRenaud merged 10 commits intoAndreRenaud:masterfrom
dontech:master
Apr 28, 2026
Merged

simple_uart: use correct API for flushing#55
AndreRenaud merged 10 commits intoAndreRenaud:masterfrom
dontech:master

Conversation

@dontech
Copy link
Copy Markdown
Contributor

@dontech dontech commented Apr 28, 2026

FlushFileBuffers() does not work for most serial ports and adapters as they found out here:

serialport/node-serialport@60d1b27

@AndreRenaud
Copy link
Copy Markdown
Owner

AndreRenaud commented Apr 28, 2026

Isn't this is different behaviour to under Linux? This aborts all in-flight transactions, and discards their data, as opposed to stalling until they've left.

Actually, I was confused about the Linux behaviour. This patch looks correct, it drops anything outstanding.

@AndreRenaud AndreRenaud merged commit 61a17fd into AndreRenaud:master Apr 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants