From ce84dce70200871185ec6ee5cdec9e566af0f069 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Tue, 27 May 2008 13:05:52 +0000 Subject: [PATCH] reset locks on forced mode switch --- platform/msb430/dev/msb430-uart1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/msb430/dev/msb430-uart1.c b/platform/msb430/dev/msb430-uart1.c index 43e32a937..468e47112 100644 --- a/platform/msb430/dev/msb430-uart1.c +++ b/platform/msb430/dev/msb430-uart1.c @@ -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