[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/TestSerialBandwidth TestSerialC.nc, 1.4, 1.5

Phil Levis scipio at users.sourceforge.net
Thu Sep 13 16:10:23 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/TestSerialBandwidth
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27056/apps/tests/TestSerialBandwidth

Modified Files:
	TestSerialC.nc 
Log Message:
The big interface switchover for Packet, Send, Receive, and AMSend.


Index: TestSerialC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/TestSerialBandwidth/TestSerialC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TestSerialC.nc	12 Dec 2006 18:22:50 -0000	1.4
--- TestSerialC.nc	13 Sep 2007 23:10:21 -0000	1.5
***************
*** 84,89 ****
      }
      else {
!       TestSerialMsg* rcm = (TestSerialMsg*)call Packet.getPayload(&packet, NULL);
!       if (call Packet.maxPayloadLength() < sizeof(TestSerialMsg)) {
  	return;
        }
--- 84,89 ----
      }
      else {
!       TestSerialMsg* rcm = (TestSerialMsg*)call Packet.getPayload(&packet, sizeof(TestSerialMsg));
!       if (rcm == NULL || call Packet.maxPayloadLength() < sizeof(TestSerialMsg)) {
  	return;
        }
***************
*** 129,133 ****
        // as fast as possible
        if (afap){
!         TestSerialMsg* rcm = (TestSerialMsg*)call Packet.getPayload(&packet,NULL);
          counter++;
          rcm->counter = counter;
--- 129,136 ----
        // as fast as possible
        if (afap){
!         TestSerialMsg* rcm = (TestSerialMsg*)call Packet.getPayload(&packet, sizeof(TestSerialMsg));
! 	if (rcm == NULL || call Packet.payloadLength(&packet) != sizeof(TestSerialMsg)) {
! 	  return;
! 	}
          counter++;
          rcm->counter = counter;



More information about the Tinyos-2-commits mailing list