mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
reset locks on forced mode switch
This commit is contained in:
parent
9c9c2573c3
commit
ce84dce702
@ -196,6 +196,7 @@ uart_set_mode(unsigned mode)
|
||||
IE2 &= ~(URXIE1 | UTXIE1); // disable irq
|
||||
uart_configure(mode); // configure uart parameters
|
||||
uart_mode = mode;
|
||||
uart_lockcnt = 0;
|
||||
|
||||
if (uart_handler[mode] != NULL) {
|
||||
IE2 |= URXIE1; // Enable USART1 RX interrupt
|
||||
|
Loading…
Reference in New Issue
Block a user