Clear UxCSR_TX_BYTE after transmitting a byte
[fw/altos] / target / ee / ee.c
index 6cf276a0cc5f9740b0ae95926bad45a7e6b1475c..ed13d0ad455e4655b525c6d4686ed7805e9436dd 100644 (file)
@@ -273,6 +273,7 @@ usart_in_out(uint8_t byte)
        U0DBUF = byte;
        while ((U0CSR & UxCSR_TX_BYTE) == 0)
                ;
        U0DBUF = byte;
        while ((U0CSR & UxCSR_TX_BYTE) == 0)
                ;
+       U0CSR &= ~UxCSR_TX_BYTE;
 }
 
 void
 }
 
 void