[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/TestNetwork TestNetworkC.nc, 1.5, 1.6

Omprakash Gnawali gnawali at users.sourceforge.net
Mon Jul 16 07:51:59 PDT 2007


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

Modified Files:
	TestNetworkC.nc 
Log Message:
send msg received, not bogus pkt

Index: TestNetworkC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/TestNetwork/TestNetworkC.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TestNetworkC.nc	14 Apr 2007 00:34:20 -0000	1.5
--- TestNetworkC.nc	16 Jul 2007 14:51:57 -0000	1.6
***************
*** 163,174 ****
       message_t* msg = call Queue.dequeue();
       dbg("Traffic", "Sending packet to UART.\n");
!      if (call UARTSend.send(0xffff, recvPtr, call Receive.payloadLength(msg) + 4) == SUCCESS) {
         uartbusy = TRUE;
       }
       else {
        call CollectionDebug.logEventMsg(NET_C_DBG_2,
! 				       call CollectionPacket.getSequenceNumber(recvPtr),
! 				       call CollectionPacket.getOrigin(recvPtr),
! 				       call AMPacket.destination(recvPtr));
       }
     }
--- 163,174 ----
       message_t* msg = call Queue.dequeue();
       dbg("Traffic", "Sending packet to UART.\n");
!      if (call UARTSend.send(0xffff, msg, call Receive.payloadLength(msg)) == SUCCESS) {
         uartbusy = TRUE;
       }
       else {
        call CollectionDebug.logEventMsg(NET_C_DBG_2,
! 				       call CollectionPacket.getSequenceNumber(msg),
! 				       call CollectionPacket.getOrigin(msg),
! 				       call AMPacket.destination(msg));
       }
     }



More information about the Tinyos-2-commits mailing list