]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usci/Msp430SpiP.nc
Use the byte passed into Interrupt.rx() rather calling into hw again.
[tinyos-2.x.git] / tos / chips / msp430 / usci / Msp430SpiP.nc
index eb217b3f92068e3cc76d2f0f4999bfe87d534359..e446431242a6f77739c05d7df499c7e24f9041bc 100644 (file)
@@ -223,9 +223,7 @@ implementation {
   async event void Interrupts.rx(uint8_t byte)
   {
     if (m_rxBuf)
-      m_rxBuf[m_pos - 1] = call Registers.getRxbuf();
-    else
-      call Registers.getRxbuf();
+      m_rxBuf[m_pos - 1] = byte;
 
     if (m_pos < m_len)
       sendData();