[Tinyos-beta-commits] CVS: tinyos-1.x/beta/Drain DrainM.nc, 1.17, 1.18

Kamin Whitehouse kaminw at users.sourceforge.net
Wed Jul 20 10:00:55 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/Drain
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13741

Modified Files:
	DrainM.nc 
Log Message:
fixed a problem where a drain response to a drip query would fail

Index: DrainM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/Drain/DrainM.nc,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** DrainM.nc	15 Jul 2005 22:40:13 -0000	1.17
--- DrainM.nc	20 Jul 2005 17:00:52 -0000	1.18
***************
*** 346,355 ****
      
      if (call LinkSendMsg.send(pMsg->addr, pMsg->length, pMsg) == SUCCESS) {
        // Wait for the sendDone.
      } else {
        // The radio didn't accept our message.
! #ifndef PLATFORM_PC
!       post QueueServiceTask();
  #endif
      }      
    }
--- 346,362 ----
      
      if (call LinkSendMsg.send(pMsg->addr, pMsg->length, pMsg) == SUCCESS) {
+ #if DRAIN_DEBUG_DETAILED
+       dbg(DBG_ROUTE, "Drain: LinkSendMsg succeeded\n");
+ #endif
        // Wait for the sendDone.
      } else {
        // The radio didn't accept our message.
! #if DRAIN_DEBUG_DETAILED
!       dbg(DBG_ROUTE, "Drain: LinkSendMsg failed\n");
  #endif
+       //#ifndef PLATFORM_PC
+       //      post QueueServiceTask();
+       //#endif
+       call Timer.start(TIMER_ONE_SHOT, 50);
      }      
    }



More information about the Tinyos-beta-commits mailing list