From 78cabecd69d4b3446237fb7e7ad29f7f8f252c8a Mon Sep 17 00:00:00 2001 From: scipio Date: Wed, 6 Aug 2008 16:20:46 +0000 Subject: [PATCH] If there's no -comm, use the default. --- support/sdk/java/net/tinyos/tools/PrintfClient.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) { -- 2.39.2