Commit ff019c1
committed
fix(uart): ensure debug uart is ready before send
Like state is ready not need to loop on the blocking
HAL_UART_Transmit(). If not ok it can be HAL_ERROR or HAL_TIMEOUT.
Moreover, it avoid to disable the U(S)ART IRQ which prevent to
receive data.
Fixes #1789
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>1 parent d974fb2 commit ff019c1
1 file changed
+11
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
708 | 709 | | |
709 | 710 | | |
710 | 711 | | |
| |||
726 | 727 | | |
727 | 728 | | |
728 | 729 | | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | 730 | | |
737 | 731 | | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
738 | 736 | | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
745 | 740 | | |
746 | 741 | | |
747 | 742 | | |
748 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
749 | 746 | | |
750 | 747 | | |
751 | 748 | | |
| |||
0 commit comments