]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
If there's no -comm, use the default.
authorscipio <scipio>
Wed, 6 Aug 2008 16:20:46 +0000 (16:20 +0000)
committerscipio <scipio>
Wed, 6 Aug 2008 16:20:46 +0000 (16:20 +0000)
support/sdk/java/net/tinyos/tools/PrintfClient.java

index 06dac45d9d70d6adf45f9ff05a857f74310358c7..bfa8ebca268446de7616923f22fae5b653332d5a 100644 (file)
@@ -58,7 +58,7 @@ public class PrintfClient implements MessageListener {
   }
   
   public static void main(String[] args) throws Exception {
-    String source = "";
+    String source = null;
     if (args.length == 2) {
       if (!args[0].equals("-comm")) {
               usage();
@@ -66,10 +66,6 @@ public class PrintfClient implements MessageListener {
       }
       source = args[1];
     }
-    else {
-      usage();
-      System.exit(1);
-    }
     
     PhoenixSource phoenix;
     if (source == null) {