]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usci/Msp430UartP.nc
Let UartByte.send() interleave with any in-progress UartStream.send().
[tinyos-2.x.git] / tos / chips / msp430 / usci / Msp430UartP.nc
index 6f6384db9618ffef37ebbdfd2a91fa0c6860e702..dcdc5b380d8370aa01507bf9783a5ececba13822 100644 (file)
@@ -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;