[Tinyos-2-commits] [tinyos-main] r5735 committed - rfxlink: fix issue 63 (Thanks Morten)

tinyos-main at googlecode.com tinyos-main at googlecode.com
Tue Sep 13 15:01:41 PDT 2011


Revision: 5735
Author:   mmaroti
Date:     Tue Sep 13 15:01:10 2011
Log:      rfxlink: fix issue 63 (Thanks Morten)
http://code.google.com/p/tinyos-main/source/detail?r=5735

Modified:
  /trunk/tos/chips/rf212/RF212DriverLayerP.nc
  /trunk/tos/chips/rf230/RF230DriverHwAckP.nc
  /trunk/tos/chips/rf230/RF230DriverLayerP.nc

=======================================
--- /trunk/tos/chips/rf212/RF212DriverLayerP.nc	Fri Sep  2 02:30:43 2011
+++ /trunk/tos/chips/rf212/RF212DriverLayerP.nc	Tue Sep 13 15:01:10 2011
@@ -633,6 +633,8 @@
  				call FastSpiByte.splitReadWrite(0);	// ED
  				crcValid = call FastSpiByte.splitRead() & RF212_RX_CRC_VALID;	//  
RX_STATUS
  			}
+			else
+				call FastSpiByte.splitRead(); // finish the SPI transfer
  		}

  		call SELN.set();
=======================================
--- /trunk/tos/chips/rf230/RF230DriverHwAckP.nc	Fri Sep  2 02:30:43 2011
+++ /trunk/tos/chips/rf230/RF230DriverHwAckP.nc	Tue Sep 13 15:01:10 2011
@@ -686,6 +686,8 @@
  				// we should have no other incoming message or buffer underflow
  				crcValid = ! radioIrq;
  			}
+			else
+				call FastSpiByte.splitRead(); // finish the SPI transfer
  		}

  		call SELN.set();
=======================================
--- /trunk/tos/chips/rf230/RF230DriverLayerP.nc	Fri Sep  2 02:30:43 2011
+++ /trunk/tos/chips/rf230/RF230DriverLayerP.nc	Tue Sep 13 15:01:10 2011
@@ -649,7 +649,10 @@
  				call PacketLinkQuality.set(rxMsg, call FastSpiByte.splitRead());
  			}
  			else
+			{
+				call FastSpiByte.splitRead(); // finish the SPI transfer
  				crc = 1;
+			}
  		}
  		else
  			crc = 1;


More information about the Tinyos-2-commits mailing list