From 9b3bcb092b6b9fba236a452663d71a39189ea283 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Thu, 8 Apr 2010 07:46:32 -0600 Subject: [PATCH] Let UartByte.send() interleave with any in-progress UartStream.send(). --- tos/chips/msp430/usci/Msp430UartP.nc | 3 --- 1 file changed, 3 deletions(-) diff --git a/tos/chips/msp430/usci/Msp430UartP.nc b/tos/chips/msp430/usci/Msp430UartP.nc index 6f6384db..dcdc5b38 100644 --- a/tos/chips/msp430/usci/Msp430UartP.nc +++ b/tos/chips/msp430/usci/Msp430UartP.nc @@ -134,10 +134,7 @@ implementation { async command error_t UartByte.send(uint8_t byte) { - /* FIXME: race with UartStream.send() */ atomic { - if (m_sobuf) - return FAIL; while (!call Registers.getIfgTx()); call Registers.setTxbuf(byte); return SUCCESS; -- 2.39.2