reset locks on forced mode switch
This commit is contained in:
parent
9c9c2573c3
commit
ce84dce702
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ uart_set_mode(unsigned mode)
|
||||||
IE2 &= ~(URXIE1 | UTXIE1); // disable irq
|
IE2 &= ~(URXIE1 | UTXIE1); // disable irq
|
||||||
uart_configure(mode); // configure uart parameters
|
uart_configure(mode); // configure uart parameters
|
||||||
uart_mode = mode;
|
uart_mode = mode;
|
||||||
|
uart_lockcnt = 0;
|
||||||
|
|
||||||
if (uart_handler[mode] != NULL) {
|
if (uart_handler[mode] != NULL) {
|
||||||
IE2 |= URXIE1; // Enable USART1 RX interrupt
|
IE2 |= URXIE1; // Enable USART1 RX interrupt
|
||||||
|
|
Loading…
Add table
Reference in a new issue