]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Use the byte passed into Interrupt.rx() rather calling into hw again.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Wed, 22 Apr 2009 00:33:44 +0000 (00:33 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:28 +0000 (20:01 -0700)
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();