[Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/java/net/tinyos/tools MsgReader.java, 1.2, 1.3

David Gay idgay at users.sourceforge.net
Fri May 2 14:14:18 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/support/sdk/java/net/tinyos/tools
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv10107/net/tinyos/tools

Modified Files:
	MsgReader.java 
Log Message:
warn about bad message classes

Index: MsgReader.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/sdk/java/net/tinyos/tools/MsgReader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MsgReader.java	12 Jul 2006 16:59:59 -0000	1.2
--- MsgReader.java	2 May 2008 21:14:16 -0000	1.3
***************
*** 94,98 ****
  	    Object packet = c.newInstance();
  	    Message msg = (Message)packet;
! 	    v.addElement(msg);
  	  }
  	  catch (Exception e) {
--- 94,103 ----
  	    Object packet = c.newInstance();
  	    Message msg = (Message)packet;
! 	    if (msg.amType() < 0) {
! 		System.err.println(className + " does not have an AM type - ignored");
! 	    }
! 	    else {
! 		v.addElement(msg);
! 	    }
  	  }
  	  catch (Exception e) {



More information about the Tinyos-2-commits mailing list