Commit 1408921
committed
sensors/ev3_uart_sensor_ld: improve resync of data messages
It is common to get UART hardware buffer overruns and miss data after
switching to the higher baud rate for receiving data. This adds some
extra checks to try to get back into sync after this happens without
having to wait for the sensor to timeout and go through the connection
sequence again. It doesn't completely fix the problem but is an
improvement over the current situation.1 parent 45e0cee commit 1408921
1 file changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
| |||
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| 584 | + | |
583 | 585 | | |
584 | 586 | | |
585 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
586 | 607 | | |
587 | 608 | | |
588 | 609 | | |
| |||
615 | 636 | | |
616 | 637 | | |
617 | 638 | | |
618 | | - | |
619 | 639 | | |
620 | 640 | | |
621 | 641 | | |
| |||
0 commit comments