[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/collection TreeRoutingEngineP.nc, 1.1.2.3, 1.1.2.4

Rodrigo Fonseca rfonseca76 at users.sourceforge.net
Wed May 17 10:53:02 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/collection
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv18048

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	TreeRoutingEngineP.nc 
Log Message:
Fixed bug with the length of sent messages

Index: TreeRoutingEngineP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/collection/Attic/TreeRoutingEngineP.nc,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** TreeRoutingEngineP.nc	16 May 2006 22:51:33 -0000	1.1.2.3
--- TreeRoutingEngineP.nc	17 May 2006 17:53:00 -0000	1.1.2.4
***************
*** 93,96 ****
--- 93,97 ----
  
      command error_t Init.init() {
+         uint8_t maxLength;
          radioOn = FALSE;
          running = FALSE;
***************
*** 101,105 ****
          my_ll_addr = call AMPacket.address();
          beaconMsg = call BeaconSend.getPayload(&beaconMsgBuffer);
!         dbg("TreeRoutingCtl","TreeRouting initialized!\n");
  #ifdef TEST_INSERT
          victim = 0;
--- 102,108 ----
          my_ll_addr = call AMPacket.address();
          beaconMsg = call BeaconSend.getPayload(&beaconMsgBuffer);
!         maxLength = call BeaconSend.maxPayloadLength();
!         dbg("TreeRoutingCtl","TreeRouting initialized. (used payload:%d max payload:%d!\n", 
!               sizeof(beaconMsg), maxLength);
  #ifdef TEST_INSERT
          victim = 0;
***************
*** 253,257 ****
          eval = call BeaconSend.send(AM_BROADCAST_ADDR, 
                                      &beaconMsgBuffer, 
!                                     sizeof(beaconMsgBuffer));
          if (eval == SUCCESS) {
              sending = TRUE;
--- 256,260 ----
          eval = call BeaconSend.send(AM_BROADCAST_ADDR, 
                                      &beaconMsgBuffer, 
!                                     sizeof(beaconMsg));
          if (eval == SUCCESS) {
              sending = TRUE;



More information about the Tinyos-2-commits mailing list