]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Fix last UartSend.send() lost when immediately followed by UartStream.send().
authorR. Steve McKown <rsmckown@gmail.com>
Wed, 7 Apr 2010 19:54:02 +0000 (13:54 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 13 Apr 2010 20:18:26 +0000 (14:18 -0600)
tos/chips/msp430/usci/Msp430UartP.nc

index 06ea790323fa9ff95e81ee100feb7ad34c7fb45c..ddf074bdd0952100c4319207af6fcdb2a6d3a5ff 100644 (file)
@@ -152,6 +152,7 @@ implementation {
        return FAIL;
       m_sobuf = buf;
       m_solen = len;
+      while (!call Registers.getIfgTx());
       call Registers.setIeTx();
       call Registers.setTxbuf(*m_sobuf);
       m_slen = m_solen - 1;