]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Let UartByte.send() interleave with any in-progress UartStream.send().
authorR. Steve McKown <rsmckown@gmail.com>
Thu, 8 Apr 2010 13:46:32 +0000 (07:46 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 13 Apr 2010 20:18:27 +0000 (14:18 -0600)
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;