Commit 5338ea0
committed
fix: Fix buffering issues with CP2102 converter causing connection failures
Some CP2102 drivers on Windows don't properly flush buffers after
unsupported commands, leaving stale data that breaks subsequent
communication. Add active buffer draining to read and discard any
lingering data before continuing.
Closes #11061 parent 524825e commit 5338ea0
1 file changed
+28
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
506 | 532 | | |
507 | | - | |
508 | | - | |
| 533 | + | |
509 | 534 | | |
510 | 535 | | |
511 | 536 | | |
| |||
0 commit comments