[Tinyos-2-commits] CVS: tinyos-2.x/apps/MViz MVizC.nc,1.2,1.3

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


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

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


Index: MVizC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/MVizC.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MVizC.nc	6 Nov 2006 11:56:46 -0000	1.2
--- MVizC.nc	13 Sep 2007 23:10:20 -0000	1.3
***************
*** 126,131 ****
      if (uartbusy == FALSE) {
        mviz_msg_t* in = (mviz_msg_t*)payload;
!       mviz_msg_t* out = (mviz_msg_t*)call SerialSend.getPayload(&uartbuf);
!       if (len != sizeof(mviz_msg_t)) {
  	return msg;
        }
--- 126,131 ----
      if (uartbusy == FALSE) {
        mviz_msg_t* in = (mviz_msg_t*)payload;
!       mviz_msg_t* out = (mviz_msg_t*)call SerialSend.getPayload(&uartbuf, sizeof(mviz_msg_t));
!       if (out == NULL) {
  	return msg;
        }
***************
*** 178,182 ****
    event void Timer.fired() {
      if (!sendbusy) {
!       mviz_msg_t *o = (mviz_msg_t *)call Send.getPayload(&sendbuf);
        memcpy(o, &local, sizeof(local));
        if (call Send.send(&sendbuf, sizeof(local)) == SUCCESS)
--- 178,186 ----
    event void Timer.fired() {
      if (!sendbusy) {
!       mviz_msg_t *o = (mviz_msg_t *)call Send.getPayload(&sendbuf, sizeof(mviz_msg_t));
!       if (o == NULL) {
! 	fatal_problem();
! 	return;
!       }
        memcpy(o, &local, sizeof(local));
        if (call Send.send(&sendbuf, sizeof(local)) == SUCCESS)



More information about the Tinyos-2-commits mailing list