[Tinyos-commits] CVS: tinyos-1.x/tools/src/sf sfsource.c,1.6,1.7

Robert Szewczyk szewczyk at users.sourceforge.net
Wed Sep 14 17:14:25 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/tools/src/sf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10029

Modified Files:
	sfsource.c 
Log Message:
fixed a small bug in the way the platforms get communicated between the client and the server


Index: sfsource.c
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/src/sf/sfsource.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** sfsource.c	13 Dec 2004 19:43:43 -0000	1.6
--- sfsource.c	15 Sep 2005 00:14:23 -0000	1.7
***************
*** 126,130 ****
        if (saferead(fd, nonce, 4) != 4)
  	return -1;
!       platform = nonce[0] | nonce[1] << 8 | nonce[2] << 16 | nonce[3] << 24;
        break;
      }
--- 126,131 ----
        if (saferead(fd, nonce, 4) != 4)
  	return -1;
!       //Unlike the more general SFProtocol.java this piece of code always knows what platform it is connected to; just   drop the preferred platform from the client
! //platform = nonce[0] | nonce[1] << 8 | nonce[2] << 16 | nonce[3] << 24;
        break;
      }



More information about the Tinyos-commits mailing list