]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usci/Msp430SpiP.nc
USCI fixes.
[tinyos-2.x.git] / tos / chips / msp430 / usci / Msp430SpiP.nc
index 22bfbbd376b1aa00237b8539a94b7ab402ea7a4f..142edb7b9f9996a8a15b1ad96a759a2b8b2a8c73 100644 (file)
@@ -250,6 +250,7 @@ implementation {
 
       if (end > m_len)
        end = m_len;
+      waitOnTx(); /* Don't assume that the last tx is done already */
       call Registers.setTxbuf(m_txBuf ? m_txBuf[m_pos] : 0);
       while (++m_pos < end) {
        waitOnRx();