From: scipio Date: Wed, 6 Aug 2008 16:20:46 +0000 (+0000) Subject: If there's no -comm, use the default. X-Git-Tag: release_tinyos_2_1_0_0~2 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=78cabecd69d4b3446237fb7e7ad29f7f8f252c8a If there's no -comm, use the default. --- diff --git a/support/sdk/java/net/tinyos/tools/PrintfClient.java b/support/sdk/java/net/tinyos/tools/PrintfClient.java index 06dac45d..bfa8ebca 100644 --- a/support/sdk/java/net/tinyos/tools/PrintfClient.java +++ b/support/sdk/java/net/tinyos/tools/PrintfClient.java @@ -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) {