[Tinyos-commits] CVS: tinyos-1.x/apps/HighFrequencySampling
Sample.java, 1.3, 1.4
David Gay
idgay at users.sourceforge.net
Fri Apr 28 10:56:01 PDT 2006
Update of /cvsroot/tinyos/tinyos-1.x/apps/HighFrequencySampling
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1321
Modified Files:
Sample.java
Log Message:
remove group id stuff
Index: Sample.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/apps/HighFrequencySampling/Sample.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Sample.java 7 Oct 2003 21:44:50 -0000 1.3
--- Sample.java 28 Apr 2006 17:55:59 -0000 1.4
***************
*** 38,49 ****
*/
public class Sample implements MessageListener {
- public static int groupId() {
- String gid = Env.getenv("GROUPID");
-
- if (gid == null)
- return -1;
- return Integer.parseInt(gid);
- }
-
public static void main(String[] args) throws Exception {
new Sample().app(args);
--- 38,41 ----
***************
*** 68,72 ****
PhoenixSource ps = BuildSource.makePhoenix(PrintStreamMessenger.err);
ps.start();
! MoteIF mif = new MoteIF(ps, groupId());
mif.registerListener(new SampleDoneMsg(), this);
--- 60,64 ----
PhoenixSource ps = BuildSource.makePhoenix(PrintStreamMessenger.err);
ps.start();
! MoteIF mif = new MoteIF(ps);
mif.registerListener(new SampleDoneMsg(), this);
More information about the Tinyos-commits
mailing list