[Tinyos-commits] CVS: tinyos-1.x/tools/java/net/tinyos/packet SerialByteSource.java, 1.4, 1.5

David Gay idgay at users.sourceforge.net
Tue Jun 13 09:22:51 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/packet
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv20137

Modified Files:
	SerialByteSource.java 
Log Message:
try 2.x tool if 1.x one fails


Index: SerialByteSource.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/packet/SerialByteSource.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SerialByteSource.java	7 Oct 2003 21:46:01 -0000	1.4
--- SerialByteSource.java	13 Jun 2006 16:22:48 -0000	1.5
***************
*** 90,94 ****
  	    Runtime.getRuntime().exec("tinyos-serial-configure " + portName);
  	}
! 	catch (IOException e) { }
  
  	is = serialPort.getInputStream();
--- 90,97 ----
  	    Runtime.getRuntime().exec("tinyos-serial-configure " + portName);
  	}
! 	catch (IOException e) {
! 	    // If it fails, try the 2.x version
! 	    Runtime.getRuntime().exec("tos-serial-configure " + portName);
! 	}
  
  	is = serialPort.getInputStream();



More information about the Tinyos-commits mailing list